Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow many files can be opened in windows OS at a Time ? Pin
paul crescent31-Oct-08 3:08
paul crescent31-Oct-08 3:08 
AnswerRe: how many files can be opened in windows OS at a Time ? Pin
toxcct31-Oct-08 3:24
toxcct31-Oct-08 3:24 
GeneralRe: how many files can be opened in windows OS at a Time ? Pin
paul crescent31-Oct-08 3:41
paul crescent31-Oct-08 3:41 
GeneralRe: how many files can be opened in windows OS at a Time ? Pin
Iain Clarke, Warrior Programmer31-Oct-08 4:54
Iain Clarke, Warrior Programmer31-Oct-08 4:54 
QuestionRe: how many files can be opened in windows OS at a Time ? Pin
CPallini31-Oct-08 4:10
mveCPallini31-Oct-08 4:10 
AnswerRe: how many files can be opened in windows OS at a Time ? Pin
Roger Stoltz31-Oct-08 5:19
Roger Stoltz31-Oct-08 5:19 
AnswerRe: how many files can be opened in windows OS at a Time ? Pin
Bram van Kampen1-Nov-08 14:50
Bram van Kampen1-Nov-08 14:50 
QuestionRegistry problem(UAC Off or On) Pin
MsmVc31-Oct-08 2:20
MsmVc31-Oct-08 2:20 
Hi All

I am try to edit regedit values in VISTA OS.It is working when UAC off.But when UAC is on then it's not working.Code is here
HKEY hKey;
    DWORD dwDisp = 0;
    LPDWORD lpdwDisp = &dwDisp;
    CString l_strExampleKey = "SYSTEM\\CurrentControlSet\\Services\\USBSTOR";
    CString l_strDWordSample = "Start";
    DWORD dwVal = 4;
	
	LONG iSuccess = RegOpenKeyEx (HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Services\\USBSTOR", 0L, KEY_READ , &hKey);
	if(iSuccess == ERROR_SUCCESS)
       {
		   
			RegCreateKeyEx( HKEY_LOCAL_MACHINE, l_strExampleKey, 0L,NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey,lpdwDisp);
            RegSetValueEx (hKey, l_strDWordSample, 0L, REG_DWORD,(CONST BYTE*) &dwVal, sizeof(DWORD));
	
		}
	      	
	RegCloseKey(hKey);


Plz help me where i am wrong..

Thanks in advanceRose | [Rose]
AnswerRe: Registry problem(UAC Off or On) Pin
Rajesh R Subramanian31-Oct-08 2:42
professionalRajesh R Subramanian31-Oct-08 2:42 
QuestionASCII to UNICODE Pin
CodingLover31-Oct-08 2:17
CodingLover31-Oct-08 2:17 
AnswerRe: ASCII to UNICODE Pin
David Crow31-Oct-08 2:47
David Crow31-Oct-08 2:47 
AnswerRe: ASCII to UNICODE Pin
CPallini31-Oct-08 2:51
mveCPallini31-Oct-08 2:51 
AnswerRe: ASCII to UNICODE Pin
Nishad S31-Oct-08 2:57
Nishad S31-Oct-08 2:57 
QuestionRe: ASCII to UNICODE Pin
CodingLover31-Oct-08 3:01
CodingLover31-Oct-08 3:01 
AnswerRe: ASCII to UNICODE - What I've done so far Pin
CodingLover31-Oct-08 3:12
CodingLover31-Oct-08 3:12 
AnswerRe: ASCII to UNICODE Pin
sashoalm31-Oct-08 8:06
sashoalm31-Oct-08 8:06 
QuestionHow to send email through coding? Pin
AnayKulkarni31-Oct-08 1:19
AnayKulkarni31-Oct-08 1:19 
AnswerRe: How to send email through coding? Pin
David Crow31-Oct-08 2:49
David Crow31-Oct-08 2:49 
QuestionMS Compiler Pin
Daniel Kanev31-Oct-08 0:18
Daniel Kanev31-Oct-08 0:18 
AnswerRe: MS Compiler Pin
Maximilien31-Oct-08 0:29
Maximilien31-Oct-08 0:29 
AnswerRe: MS Compiler Pin
CPallini31-Oct-08 0:33
mveCPallini31-Oct-08 0:33 
AnswerRe: MS Compiler Pin
Alan Balkany31-Oct-08 4:26
Alan Balkany31-Oct-08 4:26 
GeneralRe: MS Compiler Pin
Michael Dunn31-Oct-08 12:06
sitebuilderMichael Dunn31-Oct-08 12:06 
Questionhow to set the cmd line option in visual studio 2005 Pin
ptr_Electron30-Oct-08 22:46
ptr_Electron30-Oct-08 22:46 
AnswerRe: how to set the cmd line option in visual studio 2005 [modified] Pin
Windows Koder30-Oct-08 23:15
Windows Koder30-Oct-08 23:15 

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.