How to run an application in my program?

Status
Not open for further replies.

NTFS

Member level 3
Joined
Apr 6, 2004
Messages
66
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
565
Hi all

I am writing a program with VC++ .NET ( in windows form application in visual studio)

now I want to know how can I run a PDF file ( or an .exe file ) in my program?



Thanks.
 

look into the system() call and execv() and execl() calls. I know that is what the normal G++ and C++ uses
 

hi
you can use system fuction for running any command compatible to command prompt so by giving the path of file as argument in the system function u can make all the files which are recognised by os to start.


cheers
bye
 

I found one line code to do that.

I can do it because of your help.



System:iagnostics:rocess::Start( "myProg.pdf" );
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…