Re: Embed a confugeration file inside exeutable



Since this isn't a user-modifiable configuration file, there are numerous ways to get the contents
into your application. I don't know the nature of the data in this config file, is it readable
text, or just binary data? If it's text, you can include constant literal strings in an #include
file, or string resources. You can also create a custom resource which you can retrieve at runtime
and open and read its contents as needed.
Look for the MSDN Library article entitled "Creating a New Custom or Data Resource"

"Victor" <victor@xxxxxxxx> wrote in message news:uOBvwi4jFHA.3656@xxxxxxxxxxxxxxxxxxxxxxx
>I open a configuration file with fopen and parse its content in my VC 6.0
> application. I want to embed it (as a resource or something similar) inside
> the executable - so that the user will never see it or even know about its
> existence.
>
> Is this possible and how?
>
> Thanks in advance.
>
> Victor
>
>


.



Relevant Pages

  • hibernate annotations I get a MappingNotFoundException
    ... hibernate version, but I have the latest 3.2 release. ... I can generate a database schema fine, So I assume that something else ... Here is the error I get and my Configuration file ... INFO: configuring from resource: /hibernate.cfg.xml ...
    (comp.lang.java.programmer)
  • Embed a confugeration file inside exeutable
    ... I open a configuration file with fopen and parse its content in my VC 6.0 ... I want to embed it (as a resource or something similar) inside ... Prev by Date: ...
    (microsoft.public.vc.ide_general)
  • How to use @Resource annotation?
    ... private EntityManagerFactory emf; ... I can find persistence unit in persistence.xml configuration file. ... I cannot find Resource configuration information in a descriptor file. ...
    (comp.lang.java.programmer)