Solved

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

Posted on 2003-11-11
3
253 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
[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
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.NET Enums [Flags] & Bitwise Design Question 6 53
Upgrade code from VS 2010 to VS 2015 7 45
CSS question 16 63
sql connection error null reference exception 9 29
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

751 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