Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Jijo.Raj4-Jun-08 8:30
Jijo.Raj4-Jun-08 8:30 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 21:33
Trupti Mehta4-Jun-08 21:33 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 21:58
Trupti Mehta4-Jun-08 21:58 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta5-Jun-08 2:47
Trupti Mehta5-Jun-08 2:47 
AnswerRe: UpdateData - Out Of Memory - Serious problem Pin
Artem Kustikov4-Jun-08 4:52
Artem Kustikov4-Jun-08 4:52 
GeneralRe: UpdateData - Out Of Memory - Serious problem Pin
Trupti Mehta4-Jun-08 5:15
Trupti Mehta4-Jun-08 5:15 
QuestionWhen second application runs first should be hidden Pin
VCProgrammer4-Jun-08 2:13
VCProgrammer4-Jun-08 2:13 
AnswerRe: When second application runs first should be hidden Pin
Jijo.Raj4-Jun-08 2:29
Jijo.Raj4-Jun-08 2:29 
Instead of ShellExecute(), Create the process by using CreateProcess(). From the PROCESS_INFORMATION structure, you'll get the new process handle.

Now hide yourself by calling ShowWindow( FALSE ) function and wait until your second process gets finished by calling MsgWaitForSingleObject( hSecondProcess, ...). Now your first application is in waiting state.

Once the second child process is finished, the MsgWaitForSingleObject() will returns and now, show your window again by calling ShowWindow( TRUE ).

If can use WaitForSingleObject() instead of MsgWaitForSingleObject(), but then your first application dialog will not process any messages.

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

AnswerRe: When second application runs first should be hidden Pin
Saurabh.Garg4-Jun-08 2:55
Saurabh.Garg4-Jun-08 2:55 
AnswerRe: When second application runs first should be hidden Pin
Hamid_RT4-Jun-08 21:11
Hamid_RT4-Jun-08 21:11 
QuestionCustom toolbars? Pin
Lord Kixdemp4-Jun-08 2:03
Lord Kixdemp4-Jun-08 2:03 
AnswerRe: Custom toolbars? Pin
_AnsHUMAN_ 4-Jun-08 2:07
_AnsHUMAN_ 4-Jun-08 2:07 
GeneralRe: Custom toolbars? Pin
Lord Kixdemp4-Jun-08 5:42
Lord Kixdemp4-Jun-08 5:42 
QuestionHow to get the full path of a file? Pin
CrocodileBuck4-Jun-08 1:57
CrocodileBuck4-Jun-08 1:57 
AnswerRe: How to get the full path of a file? Pin
_AnsHUMAN_ 4-Jun-08 2:02
_AnsHUMAN_ 4-Jun-08 2:02 
GeneralRe: How to get the full path of a file? Pin
CrocodileBuck4-Jun-08 2:17
CrocodileBuck4-Jun-08 2:17 
GeneralRe: How to get the full path of a file? Pin
_AnsHUMAN_ 4-Jun-08 2:23
_AnsHUMAN_ 4-Jun-08 2:23 
GeneralRe: How to get the full path of a file? Pin
CrocodileBuck4-Jun-08 2:44
CrocodileBuck4-Jun-08 2:44 
AnswerRe: How to get the full path of a file? Pin
Michael Schubert4-Jun-08 2:04
Michael Schubert4-Jun-08 2:04 
AnswerRe: How to get the full path of a file? Pin
David Crow4-Jun-08 3:45
David Crow4-Jun-08 3:45 
GeneralRe: How to get the full path of a file? Pin
CrocodileBuck4-Jun-08 4:16
CrocodileBuck4-Jun-08 4:16 
GeneralRe: How to get the full path of a file? Pin
David Crow4-Jun-08 4:41
David Crow4-Jun-08 4:41 
GeneralRe: How to get the full path of a file? Pin
Hamid_RT4-Jun-08 21:13
Hamid_RT4-Jun-08 21:13 
QuestionHow can i get dynamic URL? Pin
sumit.durg4-Jun-08 1:40
sumit.durg4-Jun-08 1:40 
AnswerRe: How can i get dynamic URL? Pin
_AnsHUMAN_ 4-Jun-08 1:58
_AnsHUMAN_ 4-Jun-08 1:58 

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.