I\'m having trouble with LoadLibrary() and getting an error that doesn\'t make sense to me:
::SetLastError(0); m_hDll = ::LoadLibrary(szName); if
I was getting the same error code after calling LoadLibrary(). Finally found through dependency walker that some dependencies of module (szName) were missing.