Aug 9, 2006 #1 TekMem Programmer Jul 23, 2004 98 CA I have created programs in vb.net and vb 6. Can i start those programs myvbnet.exe and vb.exe using c++ codes. Thanks.
I have created programs in vb.net and vb 6. Can i start those programs myvbnet.exe and vb.exe using c++ codes. Thanks.
Aug 9, 2006 #2 cpjust Programmer Sep 23, 2003 2,132 US Code: #include <cstdlib> int main() { // Replace 'path' with the location of these files. system( "path/myvbnet.exe" ); system( "path/vb.exe" ); return 0; } Upvote 0 Downvote
Code: #include <cstdlib> int main() { // Replace 'path' with the location of these files. system( "path/myvbnet.exe" ); system( "path/vb.exe" ); return 0; }
Aug 10, 2006 Thread starter #3 TekMem Programmer Jul 23, 2004 98 CA Thank you cpjust! Is there a problem if my folder has space. "C:/Program Files/dlltest/dlltest.exe" If yes, is there any solution for that? Cannot move exe from Program files. Upvote 0 Downvote
Thank you cpjust! Is there a problem if my folder has space. "C:/Program Files/dlltest/dlltest.exe" If yes, is there any solution for that? Cannot move exe from Program files.
Aug 10, 2006 #4 cpjust Programmer Sep 23, 2003 2,132 US I'm not sure, but if you try it and it gives you problems, you can put quotes around it with \" Code: system( "\"C:/Program Files/dlltest/dlltest.txt\"" ); Upvote 0 Downvote
I'm not sure, but if you try it and it gives you problems, you can put quotes around it with \" Code: system( "\"C:/Program Files/dlltest/dlltest.txt\"" );
Aug 10, 2006 Thread starter #5 TekMem Programmer Jul 23, 2004 98 CA I am sorry but I cannot make it work. Upvote 0 Downvote
Aug 10, 2006 Thread starter #7 TekMem Programmer Jul 23, 2004 98 CA There is no error, also it does not execute. Upvote 0 Downvote
Aug 10, 2006 #8 cpjust Programmer Sep 23, 2003 2,132 US Can you post the code you are using? Put the code inside [ignore] Code: [/ignore] tags. Upvote 0 Downvote
Aug 10, 2006 #9 B00gyeMan Programmer Jan 14, 2004 259 RO CreateProcess - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp Example - http://goffconcepts.com/techarticles/development/cpp/createprocess.html Upvote 0 Downvote
CreateProcess - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp Example - http://goffconcepts.com/techarticles/development/cpp/createprocess.html
Aug 10, 2006 #10 ArkM IS-IT--Management Oct 21, 2002 1,819 RU Better try to start dlltest.exe, not dlltest.txt. Use "..." as cpjust said. Upvote 0 Downvote
Aug 11, 2006 Thread starter #11 TekMem Programmer Jul 23, 2004 98 CA Thanks guys ! That was a typo. I was really trying to create a dll and trying to open exe from there. some how it was not executing. Upvote 0 Downvote
Thanks guys ! That was a typo. I was really trying to create a dll and trying to open exe from there. some how it was not executing.