Jedhi Posted October 22, 2003 Posted October 22, 2003 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 can't what do I need to do, to make my dll in C++ be loaded into a Windows Form Application written in C# or VB ? Quote
Administrators PlausiblyDamp Posted October 22, 2003 Administrators Posted October 22, 2003 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 it's classes. Any .Net compatible language should work with a Managed DLL regardless of the language used to write it. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Jedhi Posted October 22, 2003 Author Posted October 22, 2003 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 ? Quote
Administrators PlausiblyDamp Posted October 22, 2003 Administrators Posted October 22, 2003 If you are writting the DLL go for a project type of 'Class Library' Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts