0

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

3
Contributors
3
Replies
9
Views
5 Years
Discussion Span
Last Post by jean1234
1
Dim lngReturn As Long
lngReturn = Shell("c:\MyProgams\cfile.exe", vbNormalFocus)
0

Hi, I am new to windows forms.
I used the 2 lines of code above to launch a c++ code from a windows forms GUI and it worked. Thanks a lot!!

I hope you can help me with the issue below:
My interface includes some text boxes. The user enters some numbers in these text boxes and I want to pass and use these parameters in the c++ code
Any idea how to do it?

Thanks !!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.