PC Review


Reply
Thread Tools Rate Thread

C++ and C# integrate

 
 
alep82@gmail.com
Guest
Posts: n/a
 
      27th Nov 2007
What are the way to utilize C++ and C# language in the same project in
Visual Studio ?


Thanks
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      27th Nov 2007
In the same project in Visual Studio? You can't. A project can target
only one language (as you need to run a compiler against it and all the code
items have to be able to be recognized by the one compiler).

Now, you can compile C++ code and C# code into the same ^assembly^, but
you would have to more than likely use the command line compilers to do
this. You would have two projects, one C#, and one C++, and then compile to
netmodules. Then, you would use al.exe (the assembly linker) to compile the
modules into an assembly.

Of course, you can have a C# project and a C++ project in the same
^solution^ and have your C++ code create managed assemblies, which you
access in your C# project, or vice versa.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

<(E-Mail Removed)> wrote in message
news:b34a8dcd-3da4-4a7a-a452-(E-Mail Removed)...
> What are the way to utilize C++ and C# language in the same project in
> Visual Studio ?
>
>
> Thanks



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to integrate CSS with web app =?Utf-8?B?Vk1J?= Microsoft ASP .NET 1 8th Nov 2006 10:57 PM
Dis-integrate SP1 to integrate SP2? =?Utf-8?B?Q2xhcmsgQ2hvbmc=?= Windows XP Setup 1 3rd Nov 2006 06:00 PM
How do I integrate SP2 onto my XP Pro CD? Photo1 Windows XP Help 2 2nd Jan 2005 10:53 PM
integrate ie6 =?Utf-8?B?bWFub2xpcw==?= Windows XP Internet Explorer 0 7th May 2004 09:36 AM
How to integrate C++.NET in VC6 mrx Microsoft VC .NET 0 4th Sep 2003 11:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 AM.