How to run one .vb file using another .vb file.

How to run one .vb file using another .vb file.

Post by vikas_cool » Fri, 05 Nov 2004 13:29:41


Hello EveryBody,
I had developed two programs in eVB suppose one.vb & two.vb .
I want to call one.vb in two.vb .I had tried with **CreateProcess** ,
it is giving error something like cannot start process.
Please if somebody can help how to call process one.vb in
two.vb .

Thanks and Reagards,
Vikas
 
 
 

How to run one .vb file using another .vb file.

Post by Peter Foot » Fri, 05 Nov 2004 19:24:12

Since a .VB file is not an executable you can't use CreateProcess, you can
either use ShellExecuteEx which will launch the exe associated with the file
type, which I believe is pvbload.exe or you can call this exe with
CreateProcess passing your .vb file as a command line argument (including
the full path to the file)

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

 
 
 

How to run one .vb file using another .vb file.

Post by vikas_cool » Sat, 06 Nov 2004 13:00:19

ThankYou Very Much Peter.