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

As i am not familiar with windows registry. I want to know the how to work with registry, like:

1) How to add the path of the xml file to windows registry.
2) How to retrieve the data of the xml file from the windows registry,

using C++/VC++.

Thanks in Advance.
Posted
Comments
Argonia 29-Oct-12 3:35am    
There is similar question here
http://stackoverflow.com/questions/2817307/how-to-write-into-registry-using-vc-2010
And i would just keep the path to the xml file.There is no way (at least i don't know a way) to keep a whole file into the registry. Save and read only the path to it
P.S use the Microsoft's library for reading a xml file msxml
Jochen Arndt 29-Oct-12 4:34am    
In your question http://www.codeproject.com/Questions/482008/RetrieveplusWindowsplusRegistry you wrote that you have added a path to the registry. So you already know the answer to the first question. The solution for that question answers the second question.

If there is still something unclear, you should comment the answer asking for clarification or edit your question rather than posting a similar question again.
Kumar 09 29-Oct-12 22:39pm    
I added the path to the registry like this "RegSetValueEx(HKEY_CURRENT_USER, "", 0, REG_SZ, (const BYTE*)"D:\\facedata.xml", 512);" but i am unable to retrieve the path from registry using RegGetValue() function. how can i get the given path from registry.

1 solution

Start here[^].
 
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