call an exe 
Author Message
 call an exe

Hi,

I want to call an .exe from a C program.
which function should I use?

Can any experienced VC programmer can me some help?

I can look up from the doc.

Thanks,

Howard



Mon, 13 Oct 2003 23:50:53 GMT  
 call an exe
        Have you already tried the system() function in the standard library???
Quote:

> Hi,

> I want to call an .exe from a C program.
> which function should I use?

> Can any experienced VC programmer can me some help?

> I can look up from the doc.

> Thanks,

> Howard



Tue, 14 Oct 2003 01:08:40 GMT  
 call an exe
Lookup ShellExec() (or is it ShellExecute())
Also see CreateProcess();

The ShellExec tends to be simpler to get right.  CreateProcess is useful if
you need to block on the other process, or play with io redirection, etc.


Quote:
> Hi,

> I want to call an .exe from a C program.
> which function should I use?

> Can any experienced VC programmer can me some help?

> I can look up from the doc.

> Thanks,

> Howard



Tue, 14 Oct 2003 01:11:35 GMT  
 call an exe
You mean like Perl

system(runProgram.exe);

can you give a little detail?

Thanks

Howard

Quote:
-----Original Message-----
        Have you already tried the system() function in the standard library???


> Hi,

> I want to call an .exe from a C program.
> which function should I use?

> Can any experienced VC programmer can me some help?

> I can look up from the doc.

> Thanks,

> Howard

.



Tue, 14 Oct 2003 01:48:02 GMT  
 call an exe
Thanks,

I got the idea.
ShellExecute() is the one I need.

Howard

Quote:
-----Original Message-----
Lookup ShellExec() (or is it
Also see CreateProcess();

The ShellExec tends to be simpler to get right.  CreateProcess is useful if
you need to block on the other process, or play with io redirection, etc.



> Hi,

> I want to call an .exe from a C program.
> which function should I use?

> Can any experienced VC programmer can me some help?

> I can look up from the doc.

> Thanks,

> Howard

.



Tue, 14 Oct 2003 02:10:08 GMT  
 call an exe
Thanks. it (ShellExecute()) works.
Howard
Quote:
-----Original Message-----
Lookup ShellExec() (or is it
Also see CreateProcess();

The ShellExec tends to be simpler to get right.  CreateProcess is useful if
you need to block on the other process, or play with io redirection, etc.



> Hi,

> I want to call an .exe from a C program.
> which function should I use?

> Can any experienced VC programmer can me some help?

> I can look up from the doc.

> Thanks,

> Howard

.



Tue, 14 Oct 2003 03:17:01 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. How to call B.exe from A.exe and then stop A.exe

2. Calling an .exe in c++

3. Question about how to call an .exe file from C#

4. calling a *.exe from another?

5. calling external exe from c program

6. Call VB exe from VC service, how?

7. Calling an exe from MS Access Macro

8. how to call an exe file from a VC++ program

9. Calling an EXE from a DLL

10. calling an exe from access macro

11. How to call wordpad.exe in program?

12. Call C# EXE from VC++

 

 
Powered by phpBB® Forum Software