Re: Build read-only file into exe file?

Tech-Archive recommends: Speed Up your PC by fixing your registry



"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.


.



Relevant Pages

  • Re: How to hide jpg
    ... Packs Multiple Files To and Extracts From Single File ... Chris Hanscom - Microsoft MVP ... You could place them in a VB resource file, ... out of the data file at runtime. ...
    (comp.lang.basic.visual.misc)
  • Zipping files and using them in a program... Is it possible?
    ... that are in a zip file or other type of *.data file (EXT would only ... availablity of viewing to users. ... Does anyone have a link or some resource they could point me to? ...
    (microsoft.public.excel.programming)
  • Re: resources help
    ... You want custom resource. ... In the IDE, open Resource View, right-click on ProjectName.rc node ... select the data file. ... (actually, any string would work, but RC_DATA is customary) ...
    (microsoft.public.vc.atl)
  • Re: how write files to cd in VB 6.0?
    ... Chris Hanscom - Microsoft MVP ... Veign's Resource Center ... Veign's Blog ... >I want to write data file to CD, could anyone tell me how to find which ...
    (microsoft.public.vb.general.discussion)
  • 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. ... Prev by Date: ...
    (microsoft.public.vc.language)