Dynamically linking a dll...

G

Guest

How can I dynamically link a dll to my C# project. I specifically would like to create a resource dll that I can later load as required by my application. Any help is appreciated.


Robert Vasquez
 
S

Shakir Hussain

Robert,

If you have a .NET dll, you can simply add it as reference and include its
namespace.

If you want to use your C++ dll (no resources), you can use DllImport to
get access to the functions. Refer MSDN about DllImport.

If you want to use a MFC dll with dialogs, It would be very convinent to use
VC.NET. You can directly include the class headers and still take advantage
..NET framework.

If you just need to call a function which will launch a dialog, use
DllImport. If you want a modal dialog, you have to pass the application
handle to dll, and dialog has to use that handle as parent.

COM dll would be better solution in c#

--
Shak
(Houston)


Robert Vasquez said:
How can I dynamically link a dll to my C# project. I specifically would
like to create a resource dll that I can later load as required by my
application. Any help is appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top