>I can't find any information about whether it's possible to include a file
>as a resource
It is possible Steve, see "User-Defined Resource" in MSDN.
> and be able to treat it as a file from within the
>application.
You'll need to treat it as a stream of data.
Dave
Steve McLellan - 23 Feb 2005 17:49 GMT
> >I can't find any information about whether it's possible to include a
> >file
[quoted text clipped - 6 lines]
>
> You'll need to treat it as a stream of data.
Hi David,
OK, thanks, I'll check that out.
Steve
Serge Baltic - 24 Feb 2005 11:56 GMT
DL> It is possible Steve, see "User-Defined Resource" in MSDN.
>> and be able to treat it as a file from within the application.
DL> You'll need to treat it as a stream of data.
You could make use of the following functions to extract it at runtime:
FindResource
LoadResource
LockResource
SizeofResource
(the first three should be used in the given sequence)
Also, a file can be addressed via the res:// protocol from the browser.

Signature
Serge
Steve McLellan - 24 Feb 2005 12:23 GMT
> DL> It is possible Steve, see "User-Defined Resource" in MSDN.
>>> and be able to treat it as a file from within the application.
[quoted text clipped - 10 lines]
>
> Also, a file can be addressed via the res:// protocol from the browser.
Hi Serge,
Thanks for the reply. I'd prefer not to read it at all if possible - the
application doesn't need to read the contents of the file, just be able to
copy it to a local disk location. But I guess writing it as a stream is a
reasonable solution and certainly seems to be much easier looking at the
API.
Thanks again,
Steve