Lauching another program in C++

Hi there,

Is it possible to launch an executable file from a C++ program?
Conversly, when you have started an executable,is it possible to terminate/close it from the program as well?

Thanks in advance

Bondfire

Comments

  • : Hi there,
    :
    : Is it possible to launch an executable file from a C++ program?
    [blue]Yes, there are several ways. system(), one of the spwan() family of functions, CreateProcess() (MS-Windows only) just to name a few.[/blue]

    : Conversly, when you have started an executable,is it possible to terminate/close it from the program as well?

    [blue]Probably, but I never tried it. It would probably depend on the operating system.[/blue]
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion