Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DLL functions without parameters
Message
From
10/07/2001 20:59:33
 
 
To
10/07/2001 20:18:03
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00528988
Message ID:
00528998
Views:
14
It is nothing to do with parameterless functions. Declaration is just ignored if we issue "DISPLAY STATUS"

Declared DLLs:
CasbahConnect d:\tt4dev\xprconnector.dll
GetActiveWindow C:\WINNT\system32\USER32.dll
SetXPRRequestValues d:\tt4dev\xprconnector.dll

I've got DLL source code either but function definition doesn't seem to be very helpful to explain the problem.

PSTR GetResult()
{
return response.GetBuffer(0);
}


>I have a problem indirectly related to Windows API but might be relevant for function calls without parameters.
>
>DECLARE STRING GetResult IN "XPRConnector.dll"
>
>string = GetResult()
>
>gives an error
>
>"file getresult.prg does not exist"
>
>though two other function calls with parameters for the same DLL didn't result in similar error.
>
>No problem in VB with that
>
>Private Declare Function GetResult Lib "XPRConnector.dll" () As String
>Text1.Text = GetResult()
>
>Any clues ?
>
>Thank you.
>Michael
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform