Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve images from EXE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01250756
Message ID:
01250825
Vues:
27
Hi Christof,

Thanks for the sample. If we wanted to wrap this type of functionality into the library, what code would you recommend that would determine if the file is embedded vs. on disk?

From what I can tell, these functions can see the embedded resource:
FILE(), FOPEN(), FILETOSTR(), LOADPICTURE()

These cannot:
ADIR(), SYS(2000)

Are there any other that I am missing here?

I read Lisa's very informative article that Sergey recommended:
(http://spacefold.com/lisa/post/Straight-Talk-about-Built-In-Files.aspx)

She recommends using FILE() vs SYS(2000). This looks elegent enough to me, but I wanted your opinion also.

She is also using STRTOFILE(FILETOSTR()) as you are using here. Is there a point where size could be come an issue that FREAD/FWRITE ing blocks would be better?

Thanks

pre>
> If ADir(laFile,Addbs(GetEnv("TEMP"))+JustFname(m.lcImage)) == 0
> StrToFile(FileToStr(m.lcImage),Addbs(GetEnv("TEMP"))+JustFname(m.lcImage))
> EndIf
> loImage = _Screen.System.Drawing.Image.FromFile( ;
> Addbs(GetEnv("TEMP")) + JustFname(m.lcImage) ;
> )
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform