Solved

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

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 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