Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Included BMP files in project and compiled program...
Message
From
15/05/2007 09:46:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Included BMP files in project and compiled program...
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01225517
Message ID:
01225517
Views:
61
My bmp image files are included in my project. And theses files are also in Visual SourceSafe. No CheckOut has been done. Then all files are ReadOnly. Before compile program, if I do the following commands everything works fine.

obj = LOADPICTURE("c:\MyProject\images\01.bmp")
SAVEPICTURE(obj, "x:\NewDestination\01.bmp")

But when the program is compiled, the first step works...
obj = LOADPICTURE("01.bmp")

but not the second, I got an error on this...
SAVEPICTURE(obj, "x:\NewDestination\01.bmp")

the error is "file access denied".
The problem comes from VSS where the "c:\MyProject\images\01.bmp" is readonly. Because if I do CheckOut in VSS, I don't have that error. I don't understand why in command window savepicture works but not after compilation. Why it try to access my bmp file when program is compiled and not in command window?
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Next
Reply
Map
View

Click here to load this message in the networking platform