Click here to Skip to main content
15,881,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionreplace usp10.dll Pin
dung nam22-Dec-05 14:25
dung nam22-Dec-05 14:25 
Questionwriting native windows service using vc++2005 Pin
orid22-Dec-05 13:57
orid22-Dec-05 13:57 
QuestionDirection needed for MFC VC++ to open a text file Pin
Klerik8222-Dec-05 11:23
Klerik8222-Dec-05 11:23 
AnswerRe: Direction needed for MFC VC++ to open a text file Pin
Blake Miller22-Dec-05 11:28
Blake Miller22-Dec-05 11:28 
GeneralRe: Direction needed for MFC VC++ to open a text file Pin
Klerik8222-Dec-05 11:29
Klerik8222-Dec-05 11:29 
QuestionHelp needed. Writing an apps launcher. Pin
cgb14322-Dec-05 9:57
cgb14322-Dec-05 9:57 
AnswerRe: Help needed. Writing an apps launcher. Pin
Blake Miller22-Dec-05 10:11
Blake Miller22-Dec-05 10:11 
GeneralRe: Help needed. Writing an apps launcher. Pin
cgb14322-Dec-05 11:14
cgb14322-Dec-05 11:14 
Doing something wrong.

I created a new MFC APP Wizard(exe) project

Added a button to the default dialog box, which generated
BEGIN_MESSAGE_MAP(CTutorDlg, CDialog)<br />
	//{{AFX_MSG_MAP(CTutorDlg)<br />
	ON_WM_SYSCOMMAND()<br />
	ON_WM_PAINT()<br />
	ON_WM_QUERYDRAGICON()<br />
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)<br />
	//}}AFX_MSG_MAP<br />
END_MESSAGE_MAP()


I added the CreateProcess
void CTutorDlg::OnButton1() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
 CreateProcess("c:\\prog1\\prog.exe",NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);<br />
	<br />
}


But it all crashes when I press the button
(MFC Application has encountered a problem and needs to close.
We are sorry for the inconvenience)
What am I missing (apart from the knowledge Smile | :) )
GeneralRe: Help needed. Writing an apps launcher. Pin
Blake Miller22-Dec-05 11:27
Blake Miller22-Dec-05 11:27 
GeneralRe: Help needed. Writing an apps launcher. Pin
cgb14322-Dec-05 11:54
cgb14322-Dec-05 11:54 
GeneralRe: Help needed. Writing an apps launcher. Pin
Blake Miller22-Dec-05 11:59
Blake Miller22-Dec-05 11:59 
GeneralRe: Help needed. Writing an apps launcher. Pin
cgb14322-Dec-05 12:20
cgb14322-Dec-05 12:20 
GeneralRe: Help needed. Writing an apps launcher. Pin
Blake Miller23-Dec-05 5:13
Blake Miller23-Dec-05 5:13 
AnswerRe: Help needed. Writing an apps launcher. Pin
Michael Dunn22-Dec-05 21:23
sitebuilderMichael Dunn22-Dec-05 21:23 
QuestionSDK , VC++ and tty Pin
McSam22-Dec-05 8:59
McSam22-Dec-05 8:59 
AnswerRe: SDK , VC++ and tty Pin
vikas amin22-Dec-05 18:44
vikas amin22-Dec-05 18:44 
GeneralRe: SDK , VC++ and tty Pin
McSam22-Dec-05 21:39
McSam22-Dec-05 21:39 
QuestionShellExecute--setting the path of the (.exe) file Pin
Klerik8222-Dec-05 7:59
Klerik8222-Dec-05 7:59 
AnswerRe: ShellExecute--setting the path of the (.exe) file Pin
David Crow22-Dec-05 8:16
David Crow22-Dec-05 8:16 
Questionwhy Function Name in DLL so strange ? Pin
jinzhecheng22-Dec-05 6:25
jinzhecheng22-Dec-05 6:25 
AnswerRe: why Function Name in DLL so strange ? Pin
David Crow22-Dec-05 6:45
David Crow22-Dec-05 6:45 
AnswerRe: why Function Name in DLL so strange ? Pin
toxcct22-Dec-05 6:58
toxcct22-Dec-05 6:58 
GeneralRe: why Function Name in DLL so strange ? Pin
vikas amin22-Dec-05 20:39
vikas amin22-Dec-05 20:39 
GeneralRe: why Function Name in DLL so strange ? Pin
Eytukan22-Dec-05 23:05
Eytukan22-Dec-05 23:05 
AnswerRe: why Function Name in DLL so strange ? Pin
Chris Losinger22-Dec-05 7:07
professionalChris Losinger22-Dec-05 7:07 

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.