Aug 9, 2006 #1 TekMem Programmer Joined Jul 23, 2004 Messages 98 Location 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 Joined Sep 23, 2003 Messages 2,132 Location 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 Joined Jul 23, 2004 Messages 98 Location 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 Joined Sep 23, 2003 Messages 2,132 Location 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 Joined Jul 23, 2004 Messages 98 Location CA I am sorry but I cannot make it work. Upvote 0 Downvote
Aug 10, 2006 #6 cpjust Programmer Joined Sep 23, 2003 Messages 2,132 Location US What does it do? Upvote 0 Downvote
Aug 10, 2006 Thread starter #7 TekMem Programmer Joined Jul 23, 2004 Messages 98 Location CA There is no error, also it does not execute. Upvote 0 Downvote
Aug 10, 2006 #8 cpjust Programmer Joined Sep 23, 2003 Messages 2,132 Location 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 Joined Jan 14, 2004 Messages 259 Location 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 Joined Oct 21, 2002 Messages 1,819 Location 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 Joined Jul 23, 2004 Messages 98 Location 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.