Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble Running App on Non-Windows 2000 PCs
Message
 
À
20/09/2002 09:09:00
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00702664
Message ID:
00702671
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform