Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Display Pictures Problem -- Again ;) [modified] Pin
Mark Salsbery3-May-08 8:15
Mark Salsbery3-May-08 8:15 
QuestionFind function in CTreeCtrl Pin
Anu_Bala1-May-08 18:45
Anu_Bala1-May-08 18:45 
QuestionRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 18:51
professionalRajesh R Subramanian1-May-08 18:51 
AnswerRe: Find function in CTreeCtrl Pin
Anu_Bala1-May-08 19:00
Anu_Bala1-May-08 19:00 
QuestionRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 19:10
professionalRajesh R Subramanian1-May-08 19:10 
AnswerRe: Find function in CTreeCtrl Pin
Anu_Bala1-May-08 19:41
Anu_Bala1-May-08 19:41 
AnswerRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 20:19
professionalRajesh R Subramanian1-May-08 20:19 
QuestionWhy do i can not delete Registry Keys ? Pin
gabbana1-May-08 13:39
gabbana1-May-08 13:39 
Hello,
i created a shell extension for my program but i cannot delete them? Whats going wrong there? Hope someone can help me. Thanks !

<br />
	HKEY key;<br />
	DWORD res;<br />
<br />
<br />
	RegCreateKeyEx(HKEY_CLASSES_ROOT,L"CPACK\\shell\\Extract with CPACK\\command",0,NULL,REG_OPTION_NON_VOLATILE,0xF003F,NULL,&key,&res);<br />
	wchar_t *data = L"C:\\cpack.exe e %1";<br />
	RegSetValueEx(key,L"",0,REG_SZ,(LPBYTE)data,(DWORD)(lstrlen(data)+1)*sizeof(TCHAR));<br />
	RegCloseKey(key);<br />
<br />
	RegCreateKeyEx(HKEY_CLASSES_ROOT,L".cpack",0,NULL,REG_OPTION_NON_VOLATILE,0xF003F,NULL,&key,&res);<br />
	data = L"CPACK";<br />
    RegSetValueEx(key,L"",0,REG_SZ,(LPBYTE)data,(DWORD)(lstrlen(data)+1)*sizeof(TCHAR));<br />
	RegCloseKey(key);<br />
<br />
	// deletes a key<br />
<br />
	// RegUnLoadKey(HKEY_CLASSES_ROOT,L"CPACK");<br />
	RegDeleteKey(HKEY_CLASSES_ROOT,L"CPACK");<br />


bye,
gabbana
AnswerRe: Why do i can not delete Registry Keys ? Pin
Randor 1-May-08 14:17
professional Randor 1-May-08 14:17 
GeneralRe: Why do i can not delete Registry Keys ? Pin
gabbana1-May-08 15:19
gabbana1-May-08 15:19 
AnswerRe: Why do i can not delete Registry Keys ? Pin
David Crow2-May-08 5:05
David Crow2-May-08 5:05 
AnswerRe: Why do i can not delete Registry Keys ? Pin
Hamid_RT2-May-08 5:06
Hamid_RT2-May-08 5:06 
QuestionAfter alt-tab, my program thinks that the alt key is still down Pin
Anthony Appleyard1-May-08 12:13
Anthony Appleyard1-May-08 12:13 
AnswerRe: After alt-tab, my program thinks that the alt key is still down Pin
Randor 1-May-08 13:02
professional Randor 1-May-08 13:02 
GeneralRe: After alt-tab, my program thinks that the alt key is still down Pin
Anthony Appleyard2-May-08 10:51
Anthony Appleyard2-May-08 10:51 
QuestionThreads in Windows service Pin
RoyceF1-May-08 11:39
RoyceF1-May-08 11:39 
AnswerRe: Threads in Windows service Pin
Blake Miller1-May-08 12:00
Blake Miller1-May-08 12:00 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 15:38
RoyceF1-May-08 15:38 
GeneralRe: Threads in Windows service Pin
Blake Miller2-May-08 4:34
Blake Miller2-May-08 4:34 
Question"MSDN Library for Visual Studio 2008 - ENU" update problem Pin
followait1-May-08 11:06
followait1-May-08 11:06 
QuestionRe: "MSDN Library for Visual Studio 2008 - ENU" update problem Pin
Hamid_RT2-May-08 5:04
Hamid_RT2-May-08 5:04 
AnswerRe: "MSDN Library for Visual Studio 2008 - ENU" update problem Pin
Mark Salsbery2-May-08 5:42
Mark Salsbery2-May-08 5:42 
QuestionHow to Convert CString to TChAR Pin
Larry Mills Sr1-May-08 10:06
Larry Mills Sr1-May-08 10:06 
AnswerRe: How to Convert CString to TChAR Pin
David Crow1-May-08 10:27
David Crow1-May-08 10:27 
AnswerRe: How to Convert CString to TChAR Pin
Randor 1-May-08 16:57
professional Randor 1-May-08 16:57 

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.