C++ in Visual basic

Integration of executable program

Page 1 of 1

3 Replies - 1017 Views - Last Post: 31 May 2002 - 10:13 AM Rate Topic: -----

#1 exppc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-April 02

C++ in Visual basic

Posted 25 May 2002 - 08:36 AM

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
:-)
Is This A Good Question/Topic? 0
  • +

Replies To: C++ in Visual basic

#2 Cookie Mobster  Icon User is offline

  • nooneenooneenooonee
  • member icon

Reputation: 7
  • View blog
  • Posts: 4,730
  • Joined: 12-October 01

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

Was This Post Helpful? 0
  • +
  • -

#3 xilica  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 28-May 02

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.
Was This Post Helpful? 0
  • +
  • -

#4 Cookie Mobster  Icon User is offline

  • nooneenooneenooonee
  • member icon

Reputation: 7
  • View blog
  • Posts: 4,730
  • Joined: 12-October 01

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.
Shell(sysPath & "
otepad.exe",_AppWinStyle.NormalFocus,True)


I would still recommend that you use a dll rather then running an external exe.

Cheers Sam

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1