Click here to Skip to main content
15,898,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Learning MFC Pin
led mike9-Feb-07 9:09
led mike9-Feb-07 9:09 
AnswerRe: Learning MFC Pin
Ravi Bhavnani9-Feb-07 8:53
professionalRavi Bhavnani9-Feb-07 8:53 
AnswerRe: Learning MFC Pin
Kevin McFarlane9-Feb-07 12:51
Kevin McFarlane9-Feb-07 12:51 
QuestionNeed help with all new type of control [modified] Pin
Daemon Black9-Feb-07 6:32
Daemon Black9-Feb-07 6:32 
AnswerRe: Need help with all new type of control Pin
James R. Twine9-Feb-07 8:06
James R. Twine9-Feb-07 8:06 
GeneralRe: Need help with all new type of control Pin
Daemon Black9-Feb-07 8:40
Daemon Black9-Feb-07 8:40 
GeneralRe: Need help with all new type of control Pin
Daemon Black9-Feb-07 16:18
Daemon Black9-Feb-07 16:18 
Questionstarting an exe file in main() [modified] Pin
Maddack9-Feb-07 4:42
Maddack9-Feb-07 4:42 
Hello community! I have a little program that I run with another (already existent) program, which I do not have source code to.

I just want to run both programs with one click, so I wonder if there is a command I can add at the top of the main file? Something like:

int main(){
run("game.exe");
... //more code here

if you get my drift.



OK I got it to work with shellexecute BUT I can only open the exe if I have them both in the same folder.

HWND m_hWnd;
ShellExecute(m_hWnd,"open","game.exe","", "", SW_SHOW);
//that works but only if they are both in same folder.

If I provide another directory like:
ShellExecute(m_hWnd,"open","C:\\Program Files\myproj\game.exe","", "", SW_SHOW);
(it is the right directory) it won't work...


-- modified at 13:16 Friday 9th February, 2007
AnswerRe: starting an exe file in main() Pin
jhwurmbach9-Feb-07 5:01
jhwurmbach9-Feb-07 5:01 
AnswerRe: starting an exe file in main() Pin
Waldermort9-Feb-07 5:22
Waldermort9-Feb-07 5:22 
AnswerRe: starting an exe file in main() Pin
Eytukan9-Feb-07 5:56
Eytukan9-Feb-07 5:56 
AnswerRe: starting an exe file in main() Pin
Hamid_RT9-Feb-07 6:02
Hamid_RT9-Feb-07 6:02 
AnswerRe: starting an exe file in main() Pin
Michael Dunn9-Feb-07 11:02
sitebuilderMichael Dunn9-Feb-07 11:02 
AnswerRe: starting an exe file in main() Pin
Sethuraman.K9-Feb-07 22:29
Sethuraman.K9-Feb-07 22:29 
QuestionChange layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:09
bosfan9-Feb-07 3:09 
QuestionRe: Change layout for standard SaveAs dialog? Pin
David Crow9-Feb-07 3:14
David Crow9-Feb-07 3:14 
AnswerRe: Change layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:30
bosfan9-Feb-07 3:30 
AnswerRe: Change layout for standard SaveAs dialog? Pin
James R. Twine9-Feb-07 3:23
James R. Twine9-Feb-07 3:23 
GeneralRe: Change layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:31
bosfan9-Feb-07 3:31 
AnswerRe: Change layout for standard SaveAs dialog? Pin
Ravi Bhavnani9-Feb-07 3:26
professionalRavi Bhavnani9-Feb-07 3:26 
GeneralRe: Change layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:59
bosfan9-Feb-07 3:59 
AnswerRe: Change layout for standard SaveAs dialog? Pin
Hamid_RT9-Feb-07 6:00
Hamid_RT9-Feb-07 6:00 
AnswerRe: Change layout for standard SaveAs dialog? [modified] Pin
Eytukan9-Feb-07 6:15
Eytukan9-Feb-07 6:15 
QuestionRe: Change layout for standard SaveAs dialog? Pin
David Crow9-Feb-07 7:11
David Crow9-Feb-07 7:11 
AnswerRe: Change layout for standard SaveAs dialog? Pin
Eytukan9-Feb-07 16:16
Eytukan9-Feb-07 16:16 

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.