PDA

View Full Version : Bug: Call DLL *long not reflecting modified value on return


NewsArchive
02-21-2005, 04: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

NewsArchive
02-22-2005, 02:00 AM
[Tuesday, February 22, 2005 10:03 AM]

Mark,

Fixed. Thank you!

Friedrich

--
Friedrich Linder
www.lindersoft.com
Fax: 1.954.252.3910

NewsArchive
02-23-2005, 04:09 AM
[Tuesday, February 22, 2005 2:25 PM]

>Mark,
>
>Fixed. Thank you!

Thanks much, Friedrich! That one was a show stopper here.

--
Best regards,

Mark