Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Systray Class in VFP8
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Systray Class in VFP8
Miscellaneous
Thread ID:
00831635
Message ID:
00831635
Views:
51
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?
Next
Reply
Map
View

Click here to load this message in the networking platform