title: LoadLibrary function - compile error
body: <p>I'm trying to build a small program which uses a dll file.
  Using VC++ compiler, I get an error saying that:</p>
  
  <p>error C2039: 'LoadLibrary' : is not a member of '`global namespace''
  error C3861: 'LoadLibrary': identifier not found</p>
  
  <p>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:</p>
  
  <pre><code>      if(m_lib) 
       ::FreeLibrary(m_lib);
    if((m_lib=::LoadLibrary(path))!=NULL)
      {
       m_pfnManVersion=reinterpret_cast&lt;ManVersion_t&gt;(::GetProcAddress(m_lib,"ManVersion"));
       m_pfnManCreate =reinterpret_cast&lt;ManCreate_t&gt;(::GetProcAddress(m_lib,"ManCreate"));
      }
  </code></pre>
  
  <p>Thanks in advence.</p>