Click here to Skip to main content
15,900,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: do-while did not work Pin
Andy41126-Nov-12 20:08
Andy41126-Nov-12 20:08 
AnswerRe: do-while did not work Pin
water-moon201226-Nov-12 20:20
water-moon201226-Nov-12 20:20 
Questioneclipse Pin
ho_khalaf26-Nov-12 8:02
ho_khalaf26-Nov-12 8:02 
QuestionRe: eclipse Pin
Maximilien26-Nov-12 8:04
Maximilien26-Nov-12 8:04 
AnswerRe: eclipse Pin
ho_khalaf26-Nov-12 8:08
ho_khalaf26-Nov-12 8:08 
AnswerRe: eclipse Pin
Richard MacCutchan26-Nov-12 8:15
mveRichard MacCutchan26-Nov-12 8:15 
Questiondo-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 6:50
ho_khalaf26-Nov-12 6:50 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
Chris Meech26-Nov-12 7:07
Chris Meech26-Nov-12 7:07 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:00
mveRichard MacCutchan26-Nov-12 8:00 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:12
ho_khalaf26-Nov-12 8:12 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:14
mveRichard MacCutchan26-Nov-12 8:14 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:16
ho_khalaf26-Nov-12 8:16 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:20
ho_khalaf26-Nov-12 8:20 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:22
mveRichard MacCutchan26-Nov-12 8:22 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 8:27
ho_khalaf26-Nov-12 8:27 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
Richard MacCutchan26-Nov-12 8:57
mveRichard MacCutchan26-Nov-12 8:57 
AnswerRe: do-while did not work in eclipse c\c++ IDE ? Pin
David Crow26-Nov-12 10:37
David Crow26-Nov-12 10:37 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 10:45
ho_khalaf26-Nov-12 10:45 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 12:02
ho_khalaf26-Nov-12 12:02 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
David Crow26-Nov-12 16:39
David Crow26-Nov-12 16:39 
GeneralRe: do-while did not work in eclipse c\c++ IDE ? Pin
ho_khalaf26-Nov-12 19:26
ho_khalaf26-Nov-12 19:26 
QuestionC++: CreateProcess() launching child applications with UAC dialog for once Pin
Farrukhw25-Nov-12 23:58
Farrukhw25-Nov-12 23:58 
Dear Community,

I'm using C++ to develop a small Bootstrapper (Setup.exe) application in C++. Using CreateProcess() to launch a .hta (HTML Application) which is used as a UI. It then calls other installers one by one which includes *.exe, *.msi etc.

What I'm trying to do is if I execute my Setup.exe, it asked for UAC for once and launch .hta so that it doesn't required UAC any further. Here is my code:
C++
 STARTUPINFO si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &si, sizeof(si) );
    si.cb = sizeof(si);
	
    ZeroMemory( &pi, sizeof(pi) );
	

	if( CreateProcess(NULL,   // No module name (use command line)
       "C:\\Windows\\MsHta.exe SetupGUI.hta"    // Command line
,
        NULL,           // Process handle not inheritable
        NULL,           // Thread handle not inheritable
        FALSE,          // Set handle inheritance to FALSE
        0,              // No creation flags
        NULL,           // Use parent's environment block
        NULL,           // Use parent's starting directory 
        &si,            // Pointer to STARTUPINFO structure
        &pi            // Pointer to PROCESS_INFORMATION structure
		))
	{

	// Wait until child process exits.
    WaitForSingleObject(pi.hProcess, INFINITE );

    // Close process and thread handles. 
    CloseHandle( pi.hProcess );
    CloseHandle( pi.hThread );


I actually saw same in an application installer, but I don't have its Setup.exe's source code.

Thanks a lot.

Farrukh
AnswerRe: C++: CreateProcess() launching child applications with UAC dialog for once Pin
chaau26-Nov-12 12:21
chaau26-Nov-12 12:21 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. Pin
DhrumilS23-Nov-12 0:48
DhrumilS23-Nov-12 0:48 
AnswerRe: How to use NTGraph3D Activex Control in Visual Studio 2010. Pin
Richard MacCutchan23-Nov-12 1:43
mveRichard MacCutchan23-Nov-12 1:43 

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.