473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

.cpp and .cs in the same assembly

Are there any plans in a future release of .NET to allow Managed C++
to co-exist in the same assembly with C# code?

The reason I ask is that I keep running into the problem where
conceptually speaking classes I make belong in a single DLL /
Assembly; due to the nature of their implementation, however, it is
frequently better to use either C# or MC++. In particular, I prefer to
use MC++ where its easier to interact with unmanaged C++. So, some DLL
which would be called Framework ends up being Framework_CS and
Framework_CPP, but that only works for simple cases, alot of times
Framework_CPP has dependencies on Framework_CS and vice versa; this
necessitates creating a bunch more DLLs than I had originally wanted
to only due to the language division.

Thanks,
-ken
Nov 15 '05 #1
2 1994
Ken,

C++ and C# code do not exist in assemblies. IL exists in assemblies.
Currently, only one programming language is allowed in any project type. By
default, projects in VS.NET compile into assemblies. However, you can
manually compile files to modules, and assemblies can have multiple modules.
This is currently the only way you can use different languages which compile
into the same assembly.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Ken Durden" <cr*************@hotmail.com> wrote in message
news:18**************************@posting.google.c om...
Are there any plans in a future release of .NET to allow Managed C++
to co-exist in the same assembly with C# code?

The reason I ask is that I keep running into the problem where
conceptually speaking classes I make belong in a single DLL /
Assembly; due to the nature of their implementation, however, it is
frequently better to use either C# or MC++. In particular, I prefer to
use MC++ where its easier to interact with unmanaged C++. So, some DLL
which would be called Framework ends up being Framework_CS and
Framework_CPP, but that only works for simple cases, alot of times
Framework_CPP has dependencies on Framework_CS and vice versa; this
necessitates creating a bunch more DLLs than I had originally wanted
to only due to the language division.

Thanks,
-ken

Nov 15 '05 #2
Nicholas Paldino [.NET/C# MVP] wrote:
However, you can manually compile files to modules, and
assemblies can have multiple modules. This is currently the only way
you can use different languages which compile into the same assembly.


Where can I find more info on this process?

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
2
by: Paul | last post by:
Hi, I have experience in Java and C++ but I am rather new to C# and just started learning it. I am using Visual C# 2005 Express Edition and I found that there is a file called "AssemblyInfo.cs",...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.