Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is it possible to add the .xml files in to a dll using c++. I am working on a project

where i am calling an .exe from the web page using javascript and in .exe file i am

using the .xml files. while calling the exe from web page i am unable to display the

exe file. for this purpose i want to embed the .xml files in to a dll. Is it possible

to incorporate in to dll. or any other way to solve this issue.

Thanks in Advance.
Posted
Comments
enhzflep 31-Oct-12 7:09am    
Your question is somewhat unclear, I'll do my best.

1) Can you include an XML file in a DLL.
Yes, just like you'd include any other resource.

2) Will this make your website 'display the exe file'?
No, of course not. It's just a more convenient way of packaging it. If you can't display the output with the xml file sitting in a folder, making it a resource isn't going to change that.

3) Is there any reason I can see to create a new DLL for the sole purpose of holding said xml file?
Nope. Why not just put it in the exe that uses it?

4) "Any other way to solve this issue"?
Er, which issue? Displaying the exe files's output on the webage? or Putting the xml file into a dll or exe? or something else again?
Kumar 09 31-Oct-12 7:22am    
Putting the xml file into a dll? and how to include resource using vc++ any example.
Richard MacCutchan 31-Oct-12 9:49am    
Just add it as a RCDATA type. I assume this exe is on your server, and you are not expecting to load it at the client.
Kumar 09 31-Oct-12 22:09pm    
i am working on a project where i need to read the data from .xml file. i am reading the data from .xml file in two scenarios.
1) i need to read data from xml file but it should be included in the windows registry. i am trying on this but not succeeded. any ideas on this scenarios help me out. and
2) i am using a javascript webpage where i call an exe, that exe contains .xml files i need to read the .xml file, but i am unable to read the .xml file in this scenario. any ideas help me out.

Thanks in Advance.
Richard MacCutchan 1-Nov-12 5:37am    
not succeeded
i am unable to read the .xml file in this scenario

These sort of comments are no use as they gives us no information on what you are doing or what problems occur or what results you get. Please edit your question and explain clearly what your code is doing and what problems or errors occur.

1 solution

I'm not entirely sure I understand the question, but maybe Bin2C is what you're looking for? http://sourceforge.net/projects/bin2c/files/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900