What type of project have you defined?
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.