Hi guys!
I have written a file processing program in c++. when executed, the file reads in a file from disk and then outputs an altered version of it.
The c++ works fine, but we want it to work from inside a VB application. When the command button is clicked, it needs to run the c++ executable file.
I can't find anything in MSDN, and i'm getting desperate!
Thanks
:-)
C++ in Visual basicIntegration of executable program
Page 1 of 1
3 Replies - 907 Views - Last Post: 31 May 2002 - 10:13 AM
Replies To: C++ in Visual basic
#2
Re: C++ in Visual basic
Posted 25 May 2002 - 10:08 AM
I'm not a VB coder but I'll assume that it is possable, I however would just make the c++ exe. into a dynamic linked library (dll) and use that instead. It is a lot more functional and less prone to confusion as if you ship with more than one exe.
Cheers Sam
#3
Re: C++ in Visual basic
Posted 31 May 2002 - 06:37 AM
If you compile the c++ application first and make is a working .exe it is possible. I am a Visual Basic coder myself.
#4
Re: C++ in Visual basic
Posted 31 May 2002 - 10:13 AM
OK Im not a VB guy but I think this is the function xilica is refering to.
I would still recommend that you use a dll rather then running an external exe.
Shell(sysPath & " otepad.exe",_AppWinStyle.NormalFocus,True)
I would still recommend that you use a dll rather then running an external exe.
Cheers Sam
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|