Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Writing 64-bit code with VS 2005 Standard ? Pin
Defenestration28-Mar-06 4:30
Defenestration28-Mar-06 4:30 
GeneralClicket police! Pin
Trollslayer28-Mar-06 7:26
mentorTrollslayer28-Mar-06 7:26 
QuestionProfiling code in VC++ 2005 ? Pin
Defenestration28-Mar-06 4:16
Defenestration28-Mar-06 4:16 
QuestionHow to pass array as a reference parameter? Pin
Ming Luo28-Mar-06 3:18
Ming Luo28-Mar-06 3:18 
AnswerRe: How to pass array as a reference parameter? Pin
toxcct28-Mar-06 3:37
toxcct28-Mar-06 3:37 
AnswerRe: How to pass array as a reference parameter? Pin
BadKarma28-Mar-06 3:53
BadKarma28-Mar-06 3:53 
AnswerRe: How to pass array as a reference parameter? Pin
khan++28-Mar-06 3:57
khan++28-Mar-06 3:57 
QuestionCreateProcess Pin
ilgale28-Mar-06 3:12
ilgale28-Mar-06 3:12 
I need to launch a GUI application from another application
that is running as a Window Service.
To do that I use the CreateProcess method. This is the code:

<br />
   PROCESS_INFORMATION l_ProcessInfo;<br />
   STARTUPINFO l_StartupInfo;<br />
<br />
   ZeroMemory(&l_StartupInfo, sizeof(STARTUPINFO));<br />
<br />
   l_StartupInfo.cb = sizeof(STARTUPINFO);<br />
   l_StartupInfo.dwFlags = STARTF_USESHOWWINDOW;<br />
   l_StartupInfo.wShowWindow = SW_SHOWMAXIMIZED;<br />
<br />
    CreateProcess(NULL, <br />
                 l_cstrFileToLaunch.GetBuffer(0), <br />
	         NULL, <br />
                 NULL, <br />
                 FALSE,<br />
                 DETACHED_PROCESS,<br />
                 NULL,<br />
	         NULL,<br />
                 &l_StartupInfo,<br />
                 &l_ProcessInfo))


The problem is the following:
the GUI application is launched (CreateProcess returns nonzero and I can
see the new process running by task manager) but its windows is not shown
and I can't see its hinstance in the Windows Command bar.

Where is the problem ?
Can someone help me ?

thanks a lot !!!
AnswerRe: CreateProcess Pin
Hamid_RT28-Mar-06 3:20
Hamid_RT28-Mar-06 3:20 
GeneralRe: CreateProcess Pin
ilgale28-Mar-06 3:25
ilgale28-Mar-06 3:25 
GeneralRe: CreateProcess Pin
Rage28-Mar-06 3:39
professionalRage28-Mar-06 3:39 
GeneralRe: CreateProcess Pin
ilgale28-Mar-06 3:48
ilgale28-Mar-06 3:48 
GeneralRe: CreateProcess Pin
Rage28-Mar-06 3:59
professionalRage28-Mar-06 3:59 
GeneralRe: CreateProcess Pin
ilgale28-Mar-06 4:06
ilgale28-Mar-06 4:06 
GeneralRe: CreateProcess Pin
khan++28-Mar-06 4:12
khan++28-Mar-06 4:12 
GeneralRe: CreateProcess Pin
ilgale28-Mar-06 4:15
ilgale28-Mar-06 4:15 
GeneralRe: CreateProcess Pin
khan++28-Mar-06 4:26
khan++28-Mar-06 4:26 
QuestionMessage encryption and splitting Pin
cjsin28-Mar-06 2:05
cjsin28-Mar-06 2:05 
AnswerRe: Message encryption and splitting Pin
Rage28-Mar-06 4:06
professionalRage28-Mar-06 4:06 
Questionvmr9.h Pin
William Burton28-Mar-06 1:16
William Burton28-Mar-06 1:16 
AnswerRe: vmr9.h Pin
Saurabh.Garg28-Mar-06 1:33
Saurabh.Garg28-Mar-06 1:33 
QuestionTo make DateTimePicker Appear flat Pin
mikobi28-Mar-06 1:08
mikobi28-Mar-06 1:08 
QuestionBitmap size: LP or DP? Pin
includeh1028-Mar-06 0:51
includeh1028-Mar-06 0:51 
QuestionCListCtrl SetItem Pin
Naveen28-Mar-06 0:48
Naveen28-Mar-06 0:48 
AnswerRe: CListCtrl SetItem Pin
Hamid_RT28-Mar-06 1:03
Hamid_RT28-Mar-06 1:03 

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.