|
From: Per W. <pw...@ia...> - 2007-02-14 00:24:45
|
Look at system, exec, spawn, ShellExecute, ShellExecuteEx or similar function calls, to start another application. By the way, M$ is trying to kill the old Win32 API. Are you really sure that you want to learn how to use it? Look into writing applications using a portable framework instead, such as wxWidgets. /Per W On Tue, 13 Feb 2007, Yohaan Hall wrote: > I am still learning C++ as well as the Dev-Cpp program. I got a little bi= t > confused at the beginning and am now able to perhaps ask the right > questions. > > the first rather simple one is how would i call a second cpp program from > the first? as in if (a=3D1) then open second program? > > the second regarding the main.c program > > hwnd =3D CreateWindowEx( > 0, /* Extended possibilites for variation */ > szClassName, /* Classname */ > "Windows Example", /* Title Text */ > WS_OVERLAPPEDWINDOW, /* defaultwindow */ > CW_USEDEFAULT, /* Windows decides the position */ > CW_USEDEFAULT, /* where the window end up on the screen = */ > 544, /* The programs width */ > 375, /* and height in pixels */ > HWND_DESKTOP, /* The window is a childwindow to desktop= */ > NULL, /* No menu */ > hThisInstance, /* Program Instance handler */ > NULL /* No Window Creation data */ > ); > > where NULL is what would i use to state that their is Window Creation dat= a > would this qualify as a call to a second program? > > _________________________________________________________________ > Don=92t miss your chance to WIN 10 hours of private jet travel from Micro= soft > Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > > |