integrating languages
-
One of the strengths touted about for .NET is the interoperability between languages. Is there some info about how to do this...a pratical guide of sorts. How would I, for example, create a form in vb, and then create the backend in c++.... i realize that these get compiled into IL...but how would i do a multi language "hello world" type thing? tia patrick
-
One of the strengths touted about for .NET is the interoperability between languages. Is there some info about how to do this...a pratical guide of sorts. How would I, for example, create a form in vb, and then create the backend in c++.... i realize that these get compiled into IL...but how would i do a multi language "hello world" type thing? tia patrick
Well, create an MC++ backend DLL, and then reference that DLL from your VB EXE, exactly as you would if the DLL was a VB DLL. It's that simple. :) If you want to mix them in the same assembly, you'll have to compile them to .NETMODULEs and then merge them. SharpDevelop makes this feature available in the IDE, but VS.NET does not, so with VS.NET, it's a little more tricky - you have to compile the projects using the command line. Usually, though, there's no need to put them together into one assembly, so you can do it the easy way.
**"Be not overcome with evil, but overcome evil with good." -- Romans 12:21
-
One of the strengths touted about for .NET is the interoperability between languages. Is there some info about how to do this...a pratical guide of sorts. How would I, for example, create a form in vb, and then create the backend in c++.... i realize that these get compiled into IL...but how would i do a multi language "hello world" type thing? tia patrick
rigamonk wrote: Is there some info about how to do this...a pratical guide of sorts. I wrote an article that covers this idea: Cross Language Web Service Implementation[^]
-Nick Parker DeveloperNotes.com