Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Show struct contents in Notepad Pin
_AnsHUMAN_ 4-Jun-06 19:43
_AnsHUMAN_ 4-Jun-06 19:43 
GeneralRe: Show struct contents in Notepad Pin
RajiRaghu4-Jun-06 19:51
RajiRaghu4-Jun-06 19:51 
GeneralRe: Show struct contents in Notepad Pin
ThatsAlok4-Jun-06 19:56
ThatsAlok4-Jun-06 19:56 
GeneralRe: Show struct contents in Notepad Pin
RajiRaghu4-Jun-06 20:00
RajiRaghu4-Jun-06 20:00 
GeneralRe: Show struct contents in Notepad Pin
ThatsAlok4-Jun-06 20:38
ThatsAlok4-Jun-06 20:38 
GeneralRe: Show struct contents in Notepad Pin
FarPointer4-Jun-06 20:59
FarPointer4-Jun-06 20:59 
GeneralRe: Show struct contents in Notepad Pin
RajiRaghu4-Jun-06 21:47
RajiRaghu4-Jun-06 21:47 
GeneralRe: Show struct contents in Notepad Pin
ThatsAlok4-Jun-06 22:11
ThatsAlok4-Jun-06 22:11 
RajiRaghu wrote:
::ShellExecute(NULL,"open","notepad.exe",NULL,NULL,SW_SHOWNORMAL);
Sleep(120);

 Instead of this code, use this code suggested by FarPointer
STARTUPINFO si;
::ZeroMemory (&si, sizeof (STARTUPINFO));
si.cb = sizeof (STARTUPINFO);
PROCESS_INFORMATION pi;

if (::CreateProcess (NULL, _T ("C:\\Windows\\Notepad"), NULL,
    NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, π)) {
    ::CloseHandle (pi.hThread);
    ::WaitForInputIdle (pi.hProcess, INFINITE);
    // Get B's window handle and send or post a message.
    ::CloseHandle (pi.hProcess);
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
GeneralRe: Show struct contents in Notepad Pin
Hamid_RT4-Jun-06 22:17
Hamid_RT4-Jun-06 22:17 
GeneralRe: Show struct contents in Notepad Pin
RajiRaghu4-Jun-06 22:56
RajiRaghu4-Jun-06 22:56 
AnswerRe: Show struct contents in Notepad Pin
_AnsHUMAN_ 4-Jun-06 20:38
_AnsHUMAN_ 4-Jun-06 20:38 
QuestionEvent Viewer Pin
ashokvishnu4-Jun-06 19:26
ashokvishnu4-Jun-06 19:26 
AnswerRe: Event Viewer Pin
Anilkumar K V5-Jun-06 0:40
Anilkumar K V5-Jun-06 0:40 
GeneralRe: Event Viewer Pin
ashokvishnu5-Jun-06 1:09
ashokvishnu5-Jun-06 1:09 
AnswerRe: Event Viewer Pin
Blake Miller6-Jun-06 5:16
Blake Miller6-Jun-06 5:16 
QuestionSignificance of MFC/.NET Pin
Nattack4-Jun-06 18:18
Nattack4-Jun-06 18:18 
AnswerRe: Significance of MFC/.NET [modified] Pin
_AnsHUMAN_ 4-Jun-06 19:28
_AnsHUMAN_ 4-Jun-06 19:28 
GeneralRe: Significance of MFC/.NET [modified] Pin
Tara144-Jun-06 22:05
Tara144-Jun-06 22:05 
GeneralRe: Significance of MFC/.NET [modified] Pin
_AnsHUMAN_ 4-Jun-06 22:12
_AnsHUMAN_ 4-Jun-06 22:12 
GeneralRe: Significance of MFC/.NET [modified] Pin
Tara144-Jun-06 22:16
Tara144-Jun-06 22:16 
QuestionHelp Needed! Pin
fury 844-Jun-06 17:00
fury 844-Jun-06 17:00 
AnswerRe: Help Needed! [modified] Pin
bob169724-Jun-06 17:21
bob169724-Jun-06 17:21 
AnswerRe: Help Needed! Pin
Christian Graus4-Jun-06 18:05
protectorChristian Graus4-Jun-06 18:05 
AnswerRe: Help Needed! Pin
ThatsAlok4-Jun-06 18:48
ThatsAlok4-Jun-06 18:48 
GeneralRe: Help Needed! Pin
Tara145-Jun-06 1:44
Tara145-Jun-06 1:44 

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.