Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot locate error
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00885783
Message ID:
00885787
Views:
33
>This probably has a simple answer that I am over looking. In the beginning of our main.prg, we have a declare statement:
>
>DECLARE INTEGER GetPrivateProfileString IN Win32API AS GetPrivStr String cSection, String cKey, String cDefault, ;
> String @cBuffer, Integer nBufferSize, String cINIFile
>
>We have a form based off of the tsbaseform. The first thing it does in the init of the form is fire off the RESTOREWINDOWPOS methoc which calls the GETPRIVSTR. However, we are getting the message:
>
>File 'Getprivstr.prg' does not exist.
>
>Any ideas?
>
>Thanks - Joe Cuhaj / ABMC

Joe,

Well, since the alias isn't case-sensitive then that's not the problem. The actual declaration of the function is, but if it matches the one you've posted, then that shouldn't be the problem because it looks good from here.

About the only thing I can suggest, providing you're using 7.0 or 8.0 is to use the ADLLS() function to see what API functions have been loaded. I'd insert that just after the declaration and just before the call to the function and set breakpoints at each. This way you'll be able to tell if the function is registered both immediately after the declaration and right before the call. This is purely a SWAG, but I'd guess there's a CLEAR DLLS being issued after the declaration.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform