Solved

Linking VB and C++

Posted on 2003-10-28
5
227 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
ID: 9640075
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
ID: 9640626
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
ID: 10546269
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
ID: 10586357
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SetCurrentDirectory path limit 7 121
Lambda for random numbers problem 7 112
Focus not getting shifted out of  editbox 2 62
Eclipse IDE - Cannot copy/paste from console output 8 185
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

786 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