Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble Running App on Non-Windows 2000 PCs
Message
 
To
20/09/2002 09:09:00
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00702664
Message ID:
00702671
Views:
8
Hi Brett,

>Getting the error
>"File getprivateprofilestring.prg does not exist"
>The app works fine on Windows 2000. Any ideas?

very interesting problem ... usually this should work without any problems. The error possibly occurs in cINIFile. If you have VFP installed on that machine I'd try this in the command window:
DECLARE INTEGER GetPrivateProfileString IN Win32API ;
  String cSection, String cKey, String cDefault, String @cBuffer, ;
  Integer nBufferSize, String cINIFile 

lcBuffer = SPACE(255) + CHR(0)

*-- Replace tcSection, tcEntryName and lcINIFile with valid information of
*-- your ini file.
lnNumBytes = GetPrivateProfileString(tcSection, tcEntryName, "", ;
                            @lcBuffer, LEN(lcBuffer), lcINIFile)
? LEFT(lcBuffer, lnNumBytes)
If this works, shut down VFP, restart and try this:
CD yourprojectdir
DO setx
x = createobject("cINIFile")
*-- Again replace the variables
? x.Get(tcSection, tcEntryName, "ERROR", tcINIFile)
and see, if this works.

HTH,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform