Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Included BMP files in project and compiled program...
Message
 
To
15/05/2007 09:46:03
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01225517
Message ID:
01225524
Views:
21
Hi Marc,

If the BMP file is included in the project, it becomes part of the EXE and cannot be modified.

HTH,
Ariel

>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?
Speak using soft and sweet words in case you have to eat them later.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform