I\'m having trouble with LoadLibrary() and getting an error that doesn\'t make sense to me:
::SetLastError(0); m_hDll = ::LoadLibrary(szName); if
Install Debugging tools and run the gflags -i your_application.exe +sls. After that execute application under the debugger to capture the loader traces.
gflags -i your_application.exe +sls