Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Included BMP files in project and compiled program...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01225517
Message ID:
01225839
Vues:
23
This message has been marked as the solution to the initial question of the thread.
Marc,

You can try -

STRTOFILE(FILETOSTR("01.bmp"), "x:\NewDestination\01.bmp")

HTH

-Dan

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

Click here to load this message in the networking platform