Problems with opening and editing a registry key with C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 11
Reputation: aaron_tan is an unknown quantity at this point 
Solved Threads: 0
aaron_tan aaron_tan is offline Offline
Newbie Poster

Problems with opening and editing a registry key with C++

 
0
  #1
Jun 3rd, 2005
Anyone has any idea how to open a windows registry key using C++?
from my understanding, there is a function in winreg.h that does this, RegOpenKeyEx and RegSetValueEx.
But i cant seem to open the key with RegOpenKeyEx. When debugging, the debugger showed this error message "First-chance exception in Proj.exe (ADVAPI32.DLL): 0xC0000005: Access Violation."
Anyone know's what the problem is? or can anyone show how should i go about opening and editing the registry?
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 232
Reputation: Dogtree is an unknown quantity at this point 
Solved Threads: 3
Dogtree's Avatar
Dogtree Dogtree is offline Offline
Posting Whiz in Training

Re: Problems with opening and editing a registry key with C++

 
0
  #2
Jun 3rd, 2005
An access violation means your code is broken. Post the relevant parts of your attempt and we can probably help you fix the problem.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC