954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Run C++ program from button click event in Windows Form application

Hi there,

I'm a Visual Basic novice and have written a very simple GUI which I want to use to run a c++ program. I'm wondering how I would write the button click event to call the C++ program? I assume there's probably a simple way to do this but my searches have been unsuccessful.

Thanks in advance,

V

v_janssens
Light Poster
34 posts since Mar 2010
Reputation Points: 11
Solved Threads: 0
 
Dim lngReturn As Long
lngReturn = Shell("c:\MyProgams\cfile.exe", vbNormalFocus)
hkdani
Posting Pro in Training
435 posts since Nov 2007
Reputation Points: 49
Solved Threads: 47
 

Thanks hkdani, problem solved

v_janssens
Light Poster
34 posts since Mar 2010
Reputation Points: 11
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You