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?