Link to home
Start Free TrialLog in
Avatar of SR_SQL
SR_SQL

asked on

Linking VB and C++

Hello,

Can any one help me to link a C++program with VisualBasic. For example,

I must have a VB Form which accepts inputs in the text box and that value should be basically assigned to the variable in the C++ program, which earlier I was getting using cin>> number.

In short,

the VB form should get the "Number" and assign to the varaible declared in .Cpp file. As of now, I was getting all the values using cin in cpp and now I want to get the values using a User Interface in visual Basic and still use it in the old CPP file.

Please help.

Thanks

ASKER CERTIFIED SOLUTION
Avatar of Member_2_1001466
Member_2_1001466

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mustak_Shaikh
Mustak_Shaikh

sr_sql,

if your really want your VB to talk with C++, then go for Win32 DLL.
create Dll and use this in your VB prog either by setting the reference(Project->Reference)
or go for CreateObject function.

Regards,
Mustak_Shaikh
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in approximately one week.  I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:
https://www.experts-exchange.com/help.jsp#hs5

Tinchos
EE Cleanup Volunteer
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: SteH {http:#9640075}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer