PDA

View Full Version : Calling windows API via Call DLL in SB



ChristianB
03-27-2020, 02:45 AM
Hi all,

I'm trying to implement a Windows API using the call dll function in SB. Consider the following lines of code, which either terminates SB directly or reports a GPF depending on running as test or debug:

4979

Any ideas what could be wrong? I've also tried to define the kernel32.dll as %SYSDIR32%\kernel32.dll but same result. :eek:

PS: I've also tried to implement this windows API in Clarion (for those familiar with that! :-)) such as this, which works just fine:

4980

Any input appreciated! :)

--
Best regards,
Christian

linder
03-27-2020, 04:36 AM
Christian,

try:

long, *string, *string

Does this work?

Friedrich

ChristianB
03-27-2020, 05:56 AM
Christian,

try:

long, *string, *string

Does this work?

Friedrich

Wow, amazing! Works like a dream! Thank you so much! :)

--
Best regards,
Christian

linder
03-27-2020, 06:44 AM
Perfect! Thank you for the good news :)

Friedrich