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) ;
> )
>