+ Reply to Thread
Results 1 to 4 of 4

Thread: Calling windows API via Call DLL in SB

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Calling windows API via Call DLL in SB

    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:

    Name:  SB_CallDLL.jpg
Views: 409
Size:  45.5 KB

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

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

    Name:  Clarion_winAPI.jpg
Views: 521
Size:  118.2 KB

    Any input appreciated!

    --
    Best regards,
    Christian

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Calling windows API via Call DLL in SB

    Christian,

    try:

    long, *string, *string

    Does this work?

    Friedrich

  3. #3

    Default Re: Calling windows API via Call DLL in SB

    Quote Originally Posted by linder View Post
    Christian,

    try:

    long, *string, *string

    Does this work?

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

    --
    Best regards,
    Christian

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Calling windows API via Call DLL in SB

    Perfect! Thank you for the good news

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •