On 9/19/07, Blue Crystal <[EMAIL PROTECTED]> wrote:

>           i need a function that calls any windows application in C/C++
> program when i run my program, under windows Turbo C++ platform.
>           i could easily accomplish this task under Linux/Unix by using
> system() function. but, how about in Windows OS.
>
>     for instance, i need to open calculator (calc) or Windows Explorer
> (explorer)

You should look back through the posts from the last week or so, there
was a long thread on opening and controlling applications in Windows.

system() will work for basic things, though, if you are using standard C++

However, you will need to upgrade your compiler, Turbo C++ will not be
able to open Windows programs and is very out of date. You should get
a free compiler like Visual C++ Express or Dev-C++ (which uses a GNU
toolset) to be able to open and control Windows applications from
another Windows application (even if you are writing a console
application, you can still use the Windows API).

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to