Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnonactivated dialog Pin
s98769018-Jan-03 6:30
s98769018-Jan-03 6:30 
GeneralRe: nonactivated dialog Pin
Michael Dunn18-Jan-03 6:46
sitebuilderMichael Dunn18-Jan-03 6:46 
GeneralCString GetBuffer Pin
nss18-Jan-03 6:15
nss18-Jan-03 6:15 
GeneralRe: CString GetBuffer Pin
Michael Dunn18-Jan-03 6:51
sitebuilderMichael Dunn18-Jan-03 6:51 
GeneralRe: CString GetBuffer Pin
nss18-Jan-03 12:37
nss18-Jan-03 12:37 
QuestionHow to put the content of scrollview into one bitmap? Pin
ashxly18-Jan-03 5:32
ashxly18-Jan-03 5:32 
AnswerRe: How to put the content of scrollview into one bitmap? Pin
Mike Nordell18-Jan-03 7:12
Mike Nordell18-Jan-03 7:12 
Generaldeleting a registry key Pin
nss18-Jan-03 5:00
nss18-Jan-03 5:00 
I want to check the registry to see if a certain key TestViewBox exists. If it does, then I want to delete it (so all the stuff under it vanishes too - correct? ). Then I want to recreate it, and put in fresh entries under that key (a subkey and then values).

I'm thinking:
		LONG res = RegOpenKeyEx(keyHandle1, "TestViewBox",
		0, KEY_ALL_ACCESS, &keyHandle2);
               
                if (res)

                   {// means it exists, so delete it........<code>I need to know how </code>); 

                //if its now been deleted or never existed then recreate it etc:

            
            RegCreateKeyEx(keyHandle1, "TestViewBox", 0, "", 
            REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL,
            &keyHandle2, &disp);

         
           RegCreateKeyEx(keyHandle2, "MyTestApp", 0, "",
           REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL,
           &keyHandle3, &disp);

           RegSetValueEx(keyHandle3, NumberOfBoxes,
	   0, REG_DWORD, (BYTE*)&numberOfBoxes, sizeof(DWORD));
{



Of course I will be checking the returnvalues from each registry function....Smile | :)
GeneralRe: deleting a registry key Pin
User 665818-Jan-03 5:21
User 665818-Jan-03 5:21 
GeneralRe: deleting a registry key Pin
Stephane Rodriguez.18-Jan-03 5:26
Stephane Rodriguez.18-Jan-03 5:26 
GeneralRe: deleting a registry key Pin
nss18-Jan-03 5:51
nss18-Jan-03 5:51 
GeneralRe: deleting a registry key Pin
Stephane Rodriguez.18-Jan-03 6:12
Stephane Rodriguez.18-Jan-03 6:12 
GeneralRe: deleting a registry key Pin
nss18-Jan-03 6:45
nss18-Jan-03 6:45 
GeneralRetrieving application directory Pin
georgiek5018-Jan-03 3:29
georgiek5018-Jan-03 3:29 
GeneralRe: Retrieving application directory Pin
User 665818-Jan-03 3:46
User 665818-Jan-03 3:46 
GeneralRe: Retrieving application directory Pin
Dominik Reichl18-Jan-03 3:57
Dominik Reichl18-Jan-03 3:57 
GeneralRe: Retrieving application directory Pin
georgiek5018-Jan-03 4:18
georgiek5018-Jan-03 4:18 
GeneralOLE Automation server and NT Services Pin
PaulVdB18-Jan-03 0:17
PaulVdB18-Jan-03 0:17 
GeneralAPI Pin
suresh_sathya17-Jan-03 23:23
suresh_sathya17-Jan-03 23:23 
Questionwhich function counts the number of directories? Pin
Geert Craessaerts17-Jan-03 23:06
Geert Craessaerts17-Jan-03 23:06 
AnswerRe: which function counts the number of directories? Pin
Ted Ferenc17-Jan-03 23:20
Ted Ferenc17-Jan-03 23:20 
GeneralRe: which function counts the number of directories? Pin
Geert Craessaerts18-Jan-03 0:47
Geert Craessaerts18-Jan-03 0:47 
GeneralRe: which function counts the number of directories? Pin
Ted Ferenc18-Jan-03 1:38
Ted Ferenc18-Jan-03 1:38 
GeneralAddress passing between two processes Pin
Wenrich17-Jan-03 21:18
Wenrich17-Jan-03 21:18 
GeneralRe: Address passing between two processes Pin
Taka Muraoka17-Jan-03 22:50
Taka Muraoka17-Jan-03 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.