Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Systray Class in VFP8
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Systray Class in VFP8
Divers
Thread ID:
00831635
Message ID:
00831635
Vues:
52
Having a bit of a file path problem with this class. I have included my ICON file in my project. All works well at development time but NOT from an EXE on a different machine.

I have narrowed the problem down to this code snippet (Obviously I added the wait windows) in the 'loadicon' method of the systray.vcx.

********************
IF FILE(cIconFileName)
cTempFileName = ADDBS(GETENV("temp")) + "systray_temp_" + SYS(3) + ".icn"
WAIT WINDOW cTempFileName
COPY FILE (cIconFileName) TO (cTempFileName)
WAIT WINDOW 'check for file now'
ELSE
RETURN
ENDIF
********************
I see the temp file name in my wait window, so I know that the FILE() function has found the file inside my EXE. I get an error on the COPY FILE command. Error is that it can't find the file specified by 'cIconFileName'. Finally when I check in the windows temp directory for the temp file whos name is specified by 'cTempFileName', as expected by the previous COPY FILE error the file is not there.

Does anyone have any suggestions for how to resolve this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform