opening notepad
-
Hi everybody, In my dialog based application ,i should open up an "Notepad" when the user clicks an button in the dialog.I'm using flushall(); system("notepad"); functions to open the notepad.Theproblem is when i open the notepad it opens up with the command prompt window and when i want to close the notepad the dialog doesnt gets repainted properly and it looks disfigured.It'll be really great if anyone can help me out in this. Thanks and regards, Rajeev
-
Hi everybody, In my dialog based application ,i should open up an "Notepad" when the user clicks an button in the dialog.I'm using flushall(); system("notepad"); functions to open the notepad.Theproblem is when i open the notepad it opens up with the command prompt window and when i want to close the notepad the dialog doesnt gets repainted properly and it looks disfigured.It'll be really great if anyone can help me out in this. Thanks and regards, Rajeev
-
Hi everybody, In my dialog based application ,i should open up an "Notepad" when the user clicks an button in the dialog.I'm using flushall(); system("notepad"); functions to open the notepad.Theproblem is when i open the notepad it opens up with the command prompt window and when i want to close the notepad the dialog doesnt gets repainted properly and it looks disfigured.It'll be really great if anyone can help me out in this. Thanks and regards, Rajeev
try to use ShellExecute(...) to open notepade. We Believe in Excellence www.aqueelmirza.cjb.net
-
Hi everybody, In my dialog based application ,i should open up an "Notepad" when the user clicks an button in the dialog.I'm using flushall(); system("notepad"); functions to open the notepad.Theproblem is when i open the notepad it opens up with the command prompt window and when i want to close the notepad the dialog doesnt gets repainted properly and it looks disfigured.It'll be really great if anyone can help me out in this. Thanks and regards, Rajeev
SHELLEXECUTEINFO shell; memset(&shell, 0, sizeof(SHELLEXECUTEINFO)); shell.cbSize=sizeof(SHELLEXECUTEINFO); shell.lpVerb=_T("open"); shell.hwnd=m_hWnd; shell.nShow=1; shell.lpFile=_T("Notepad.exe"); ShellExecuteEx(&shell);
-
try to use ShellExecute(...) to open notepade. We Believe in Excellence www.aqueelmirza.cjb.net
-
ShellCreate(..),system(...) and CreateProcess are all opening the notepad ,but my actual problem is refreshing the screen(painiting it again) after the notepad is opened.How do i solve that
What You need to refresh screen?
-
Hi everybody, In my dialog based application ,i should open up an "Notepad" when the user clicks an button in the dialog.I'm using flushall(); system("notepad"); functions to open the notepad.Theproblem is when i open the notepad it opens up with the command prompt window and when i want to close the notepad the dialog doesnt gets repainted properly and it looks disfigured.It'll be really great if anyone can help me out in this. Thanks and regards, Rajeev
Normally this should not be a problem. To me it seems that you block your application somehow to proceed. I think system() is a call that blocks progress of the program invoking it. So while Notepad is active repainting will be prevented. Maybe using ShellExecute() in stead of system() will solve your problem. Regards, Rudolf Heijink