Re: Build read-only file into exe file?
- From: "Frank Hickman [MVP]" <fhickman3_NOSP@xxxxxxxxxxxxxxx>
- Date: Sat, 12 Nov 2005 16:53:06 -0500
"Davy" <zhushenli@xxxxxxxxx> wrote in message
news:1131809123.653764.324480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> A read-only data file is read in a C/C++ program.
> And I use stdio function such as fopen() to fread() to operate the
> file.
> The content of the data file is constant.
>
> How to build the file into exe file?
>
> I work on MS windows. I use Visual C++ 6.0.
>
> Someone suggest me to use "resources file" in VC. I am new to it. Can
> you give some tutorial of it, thanks.
>
>
> Any suggestions will be appreciated!
> Best regards,
> Davy
>
Open your resource editor in the IDE and import the file into a binary
resource. Then you can load the resource into a memory buffer during
execution.
--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
.
- References:
- Build read-only file into exe file?
- From: Davy
- Build read-only file into exe file?
- Prev by Date: Re: sound loading
- Next by Date: playsound volume
- Previous by thread: Build read-only file into exe file?
- Next by thread: playsound volume
- Index(es):
Relevant Pages
|