Solved

Linking VB and C++

Posted on 2003-10-28
5
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maze travler 6 73
C++ :Change value from  DisableCMD registry 4 81
DCT of  2D array using fftw in c++ 9 138
No module found pypyodbc, 3 58
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

710 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