Jul 21, 2006 #1 N 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.
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.
Jul 21, 2006 #2 A Anno Advanced Member level 4 Joined Feb 8, 2006 Messages 106 Helped 14 Reputation 28 Reaction score 0 Trophy points 1,296 Location South Africa Activity points 1,899 look into the system() call and execv() and execl() calls. I know that is what the normal G++ and C++ uses
look into the system() call and execv() and execl() calls. I know that is what the normal G++ and C++ uses
Jul 21, 2006 #3 V Venkata Krishna Member level 1 Joined Oct 31, 2005 Messages 33 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Location NOIDA Activity points 1,518 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
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
Jul 23, 2006 #4 eelinker Full Member level 5 Joined Feb 12, 2006 Messages 267 Helped 16 Reputation 32 Reaction score 8 Trophy points 1,298 Location PERSIA Activity points 2,775 http://www.codecomments.com/archive292-2004-5-202786.html
Jul 27, 2006 #5 N NTFS Member level 3 Joined Apr 6, 2004 Messages 66 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Activity points 565 I found one line code to do that. I can do it because of your help. System:iagnostics:rocess::Start( "myProg.pdf" );
I found one line code to do that. I can do it because of your help. System:iagnostics:rocess::Start( "myProg.pdf" );