Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble Running App on Non-Windows 2000 PCs
Message
De
20/09/2002 09:59:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00702664
Message ID:
00702705
Vues:
11
Both of these seemed to work fine. Very odd.

>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 !!!!!!!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform