Solved

Linking VB and C++

Posted on 2003-10-28
5
204 Views
Last Modified: 2010-04-02
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

0
Comment
Question by:SR_SQL
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
SteH earned 20 total points
Comment Utility
I would suggest to use a dialog based application under VC++. The app wizard will do the most parts of it for you. Mainly designing the dialog = form rests on you. In that way there is no problem in linking but there might be one in redesigning the form.
0
 
LVL 1

Expert Comment

by:Mustak_Shaikh
Comment Utility
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
0
 
LVL 9

Expert Comment

by:tinchos
Comment Utility
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:
http://www.experts-exchange.com/help.jsp#hs5

Tinchos
EE Cleanup Volunteer
0
 
LVL 9

Expert Comment

by:tinchos
Comment Utility
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
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now