Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ?

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

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 ?

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...