HINSTANCE hinstLib=LoadLibrary("C:\\mydll.dll");
I have no idea why I always get 0
in return after running that line of code.
Actually I have also another COM dll namely mydllCOM.dll
that I already registered successfully with regsvr32
command. I would like to use the above (mydll.dll)
in my application but always fail at the line as mentioned.
The error code I got from GetLastError is 193
and I have no idea, why it is about the wrong type of dll