Build read-only file into exe file?



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

.



Relevant Pages

  • Re: Build read-only file into exe file?
    ... > And I use stdio function such as fopento fread() to operate the ... > The content of the data file is constant. ... Open your resource editor in the IDE and import the file into a binary ...
    (microsoft.public.vc.language)
  • Re: The concept of a record
    ... After reading Gordon and Klaus's replies, ... external data file, I load the data file using fread of matlab. ... fread will produce a data matrix. ...
    (comp.lang.fortran)
  • Re: sizeof error?
    ... > I have, I believe, a good reason: I am reading (with fread) a binary ... > data file into this structure. ... The data is 6 bytes/record, ... I'm Schobi at suespammers dot org ...
    (microsoft.public.vc.language)