Hello,
I'm trying to build small program which uses a dll file using VC++.
I get compile error saying that:
error C2039: 'LoadLibrary' : is not a member of '`global namespace''
error C3861: 'LoadLibrary': identifier not found
LoadLibrary is included in winbase.h file and my all files include stdafx.h so, winbase is included already. I could not figure out why it fails to compile.
Here is the code:
You're clearly not including the correct header file. If you're not using MFC, you ought to just include Windows.h.
There's something uncomfortable about that use of m_lib. You should know when it's valid, you should need to check like that. It indicates a structural problem with your program.