Click here to Skip to main content
15,909,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstatic control Pin
shubhishubhi15-Dec-04 0:06
shubhishubhi15-Dec-04 0:06 
GeneralRe: static control Pin
includeh1015-Dec-04 1:02
includeh1015-Dec-04 1:02 
GeneralChecking if an exe file is running Pin
Member 158681215-Dec-04 0:01
Member 158681215-Dec-04 0:01 
GeneralRe: Checking if an exe file is running Pin
includeh1015-Dec-04 1:10
includeh1015-Dec-04 1:10 
GeneralRe: Checking if an exe file is running Pin
gamitech15-Dec-04 1:17
gamitech15-Dec-04 1:17 
GeneralRe: Checking if an exe file is running Pin
Member 158681215-Dec-04 2:14
Member 158681215-Dec-04 2:14 
GeneralRe: Checking if an exe file is running Pin
Blake Miller15-Dec-04 4:00
Blake Miller15-Dec-04 4:00 
GeneralRe: Checking if an exe file is running Pin
David Crow15-Dec-04 4:01
David Crow15-Dec-04 4:01 
HocusPocus235 wrote:
WinExec("Application.exe",SW_SHOWMAXIMIZED);

As WinExec() is for use with 16-bit Windows, why not use CreateProcess() instead?

STARTUPINFO si = {0};
PROCESS_INFORMATION pi = {0};
si.cb = sizeof(si);
CreateProcess(NULL, "Application.exe", ..., &si, &pi);
Now when you want to know about the process, just look at pi.hProcess.


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


GeneralRe: Checking if an exe file is running Pin
Member 158681215-Dec-04 21:26
Member 158681215-Dec-04 21:26 
GeneralRe: Checking if an exe file is running Pin
namaskaaram15-Dec-04 4:48
namaskaaram15-Dec-04 4:48 
GeneralRe: Checking if an exe file is running Pin
Antony M Kancidrowski15-Dec-04 6:05
Antony M Kancidrowski15-Dec-04 6:05 
GeneralRe: Checking if an exe file is running Pin
namaskaaram15-Dec-04 16:37
namaskaaram15-Dec-04 16:37 
GeneralRe: Checking if an exe file is running Pin
David Crow16-Dec-04 2:29
David Crow16-Dec-04 2:29 
GeneralRe: Checking if an exe file is running Pin
vishalmore15-Dec-04 17:31
vishalmore15-Dec-04 17:31 
QuestionHow to speed up creation of a window? Pin
[AMI]14-Dec-04 23:53
[AMI]14-Dec-04 23:53 
AnswerRe: How to speed up creation of a window? Pin
User 665815-Dec-04 0:55
User 665815-Dec-04 0:55 
GeneralExtracting the Points from a CRgn Object Pin
Rajesh_Parameswaran14-Dec-04 23:49
Rajesh_Parameswaran14-Dec-04 23:49 
GeneralWrite a .ini file of the application in MFC Pin
ytod14-Dec-04 23:33
ytod14-Dec-04 23:33 
GeneralRe: Write a .ini file of the application in MFC Pin
User 665815-Dec-04 0:54
User 665815-Dec-04 0:54 
Generalcolor the text in MFC Dialog Pin
ytod14-Dec-04 23:05
ytod14-Dec-04 23:05 
GeneralRe: color the text in MFC Dialog Pin
V.15-Dec-04 0:56
professionalV.15-Dec-04 0:56 
GeneralRe: color the text in MFC Dialog Pin
ytod15-Dec-04 16:12
ytod15-Dec-04 16:12 
GeneralRe: color the text in MFC Dialog Pin
David Crow15-Dec-04 4:04
David Crow15-Dec-04 4:04 
GeneralRe: color the text in MFC Dialog Pin
ytod15-Dec-04 15:33
ytod15-Dec-04 15:33 
GeneralRe: color the text in MFC Dialog Pin
David Crow16-Dec-04 4:00
David Crow16-Dec-04 4:00 

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.