C++.NET dll called from vb.NET and C#?

synth0id

New member
Joined
Sep 17, 2003
Messages
1
Hey,

Im writing a .dll in C++.NET and I want to enable it to be called from any .NET language. So, first question is, how can I do this? Does it work the same as ATL or soemthing, maybe that Managed stuff?

I am slightly concerned about performance as well. If I do this through .NET and not ATL will I see any performance increase or decrease? Ive heard that even C++.NET compiles into the IL like vb.NET and C#. If this is true, then should I be using the non-.NET way(i think its called unmanaged?) so that I can keep C++ performance and just use ATL?

A tutorial would be nice as well if anybody knows of one:)

Im a little hazzy on terms so if anything needs explaining please ask.

Thanks for the help,
synth0id

P.S. Im not just calling functions from this dll....it will be mostly classes
 
Last edited by a moderator:
Managed code is ment to be slightly faster than Unmanaged but it is slower to start because its not compiled to begin with.

You use the managed extensions to make a managed class that can be imported into a Managed program, Unmanaged code will need COM or DLL exports or a internal/external Managed wrapper to allow access to the Unmanaged classes.
 
I dont know if this helps but I once wrote a DLL in VB.NET and then later used it in a C#.NET application - one of the greatest things about .NET is that all of its code is suppose to be appliable to all other .NET languages; in otherwords you should be able to compile your C++.NET code and then add a referance to it from whatever .NET language your using.
 
Back
Top