Problem Loading a DLL (4 replies)
Posted
on .NET 247
See other posts from .NET 247
Published on 18 Feb 2010 11:44:22
Indexed on
2010/03/08
3:32 UTC
Read the original article
Hit count: 285
Filed under:
I'm having some issues now that I can't see what I'm doing wrong. I'm Pinvoking a non WindowsAPI DLL (I mean, not a dll provided on windows). Pinvoking LoadLibrary, I can get a IntPtr to any WindowsAPI DLL, but never I can get a pointer to my DLL. The code I'm using is very simple, like this one: [DllImport("kernel32.dll", SetLastError true)] public static extern IntPtr LoadLibrary(); static void ...
© .NET 247 or respective owner