Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble Running App on Non-Windows 2000 PCs
Message
From
20/09/2002 10:36:37
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00702664
Message ID:
00702731
Views:
11
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
GOOOOOOOO BUCS !!!!!!!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform