M Mattias Sjögren Oct 6, 2006 #2 I have to use DllImport with no static dll filename. Any suggest? Click to expand... In .NET 2.0 you can use the LoadLibrary and GetProcAddress Win32 APIs combined with the Marshal.GetDelegateForFunctionPointer method to call the functions through a dynamically created delegate. In earlier versions you can use this technique http://www.msjogren.net/dotnet/eng/samples/dotnet_dynpinvoke.asp Mattias
I have to use DllImport with no static dll filename. Any suggest? Click to expand... In .NET 2.0 you can use the LoadLibrary and GetProcAddress Win32 APIs combined with the Marshal.GetDelegateForFunctionPointer method to call the functions through a dynamically created delegate. In earlier versions you can use this technique http://www.msjogren.net/dotnet/eng/samples/dotnet_dynpinvoke.asp Mattias