combability

Jedhi

Well-known member
Joined
Oct 2, 2003
Messages
127
I have been written a class library in C++. How do I load it into a Windows Form Application ?

And can I write the Windows Form Application in any .NET language I want. And If I cant what do I need to do, to make my dll in C++ be loaded into a Windows Form Application written in C# or VB ?
 
Was the DLL written in C++ or Managed C++? If just C++ then it could be quite messy to call from .Net - you will have to either write a managed wrapper or dllimport all the exposed functions into the .Net Windows app.

If it is a managed DLL (or a Managed wrapper) you can simple set a reference to it from Visual Studio and access its classes. Any .Net compatible language should work with a Managed DLL regardless of the language used to write it.
 
So, If I have made a class library that is managed code I should just put the dll as a reference, and then I can make the applcation in every .NET language ?

What project should I prefer to make a dll in : Class library, win32 dll or any other .NET project ?
 
Back
Top