Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Systray Class in VFP8
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00831635
Message ID:
00831640
Vues:
16
See Re: Foxtray sample in solution.pjx Message #811889 for possible solution.

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

Click here to load this message in the networking platform