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 10:36:37
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00702664
Message ID:
00702745
Views:
9
Hmmm ... the API declaration seems not to be done on the other machine. That's why the error occurs. VFP looks for a function or prg with the name of the API function. But thid doesn't really make any sense to me. You could set a breakpoint in the Init (in the line where the declare statement is) and in Get() method of cINIFile.

Armin

>No
>
>>>Both of these seemed to work fine. Very odd.
>>
>>Are you working with an own subclass of cINIFile?
>>
>>Armin
>>
>>>
>>>>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