Solved

can we Mix vb.net and managed C++ codes !!

Posted on 2003-11-11
3
246 Views
Last Modified: 2013-12-03
Hi,
I converted my old C++ code to managed C++ code some time back .. and now i need to integrate this code along with another code that has been written in vb.net .. I wanted to know if this can be done .. i've been trying this for some time now but when i include my managed c++ project into my vb.net project and try to include the  workspace in the vb.net project .. it says that the workspace with such and such name does not exist. .on going to the configuration manager in the debug menu i found that the managed c++ code was on win32 platfom while the vb.net code is on .NET platform .. does that make a difference ..
also while adding the managed c++ project in the references I get an error A reference to Managedcode cannot be added. An assembly should have a .dll extension in order to be referenced ..
does this mean that the managed c++ code cannot be mixed with the vb.net code?

regards.
0
Comment
Question by:maverick1611
3 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 75 total points
ID: 9723743
if you build your 'solution' with a Managed C++ project and a VB.NET project, then yes, they can happily co-exist.

Have you added the reference to the C++ project ot the VB.NET project.

It is not enough to simply have the two projects together in the same solution, the VB.NET project MUST also hold a reference to the C++.NET project (References/Add Reference  ---> then on the Projects Tab, select the C++ project that is part of the Solution).

AW
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10256773
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: Arthur_Wood {http:#9723743}

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

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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