NewsArchive
02-21-2005, 05:39 AM
[Wednesday, February 16, 2005 3:42 AM]
A *long parameter in Call DLL does not reflect the modified value on function
return.
This is easily demonstrated using the "Call Dll Demo 1.sb5" example script.
Modify the Message Box statement after the GetComputerName() call to display
the value of %NSIZE%. It always displays its value passed in of 256.
GetComputerName() modifies the lpnSize parameter to reflect the size of the
returned string, so %NSIZE% should have that value.
--
Best regards,
Mark
A *long parameter in Call DLL does not reflect the modified value on function
return.
This is easily demonstrated using the "Call Dll Demo 1.sb5" example script.
Modify the Message Box statement after the GetComputerName() call to display
the value of %NSIZE%. It always displays its value passed in of 256.
GetComputerName() modifies the lpnSize parameter to reflect the size of the
returned string, so %NSIZE% should have that value.
--
Best regards,
Mark