Compiling Multiple

samsmithnz

Senior Contributor
Joined
Jul 22, 2003
Messages
1,038
Location
Boston
Compiling Multiple Languages into One Assembly

One of the main features Microsoft declared about VS.NET was that all the languages are now equal in respect to data types. The Main idea being was that you could write a specifically low level module of your application in C++, while the rest was in C# or VB. And because all the languages were compiled down to this common cls thingy, they are all equal (relatively)

I know that VS.NET 2002 did not support this multiple language compiling. Something about the compiler not supporting it yet.
I wanted to know if this is supported in VS.NET 2003 yet?

Or is it just a impossible Microsoft dream....

Thanks

Sam
 
Last edited:
What they mean is that you can write one assembly in one language and one in another, and interop between them seamlessly, using the same types. You can even inherit a class written in one language with one written in another.

The command-line tools also support compiling ONE assembly from sources in multiple languages, but Visual Studio doesn't support it so you'll have to do it manually using the assembly linker (al.exe) tool.
 
Ahhhh thats it. I knew it was something like that. Do you happen to know of any online examples?

I've just been reading MSDN, but its very heavy and seems to have a LOT of options!

thanks

Sam
 
I'm sorry I don't. I haven't ever actually done it, but I think there's an option on the vbc and csc compilers (maybe the c one too) that generates a partial assembly instead of going all the way to exe. You can then link these modules with al.exe.
 
OK thanks for your knowledge anyway.

Anyone else out there who can help us? I've jsut had a look on Google, but I still can't find any specific examples...
 
Back
Top