I need to dynamicly load C++ DLL from .Net module. (C#)
Name of dll in unknown during compliation, but export section is well known.
How should I do this?
I need .NET equivalents for win32 functions
LoadLibrary
FreeLibrary
GetProcAddress
Thanks in advance.
Kucin
Tyler - 02 Jun 2005 12:17 GMT
Check out www.pinvoke.net for DllImport definitions for those methods.
Tyler
> I need to dynamicly load C++ DLL from .Net module. (C#)
> Name of dll in unknown during compliation, but export section is well known.
[quoted text clipped - 7 lines]
> Thanks in advance.
> Kucin
Mattias Sjögren - 02 Jun 2005 13:33 GMT
>How should I do this?
You may want to look at
http://www.msjogren.net/dotnet/eng/samples/dotnet_dynpinvoke.asp
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.