title: LoadLibrary is not working
body: <p>I have created an <code>*.exe</code> and <code>*.dll</code> for my project.
  I have provided all the correct path and data.
  <code>Myexe.cpp</code>:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;Windows.h&gt;
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      HMODULE hInstLibrary = LoadLibrary(L("..\\Debug\\LoadDLL\\LoadDLL.dll"));// I have checked with complete path as well.
      if(hInstLibrary)
      {
          printf("Hello World");
      }
      return 0;
  }
  </code></pre>
  
  <p><code>MyDLL.cpp</code>:</p>
  
  <pre><code>#include "MyDLL.h"
  #include &lt;stdio.h&gt;
  
      MyDLL::MyDLL(void)
      {
  
  }
  
  
  MyDLL::~MyDLL(void)
  {
  }
  
  extern "C" __declspec(dllexport) void HelloWorld()
  {
      printf("Hello DLL");
  }
  </code></pre>
  
  <p><code>MyDLL.h</code>:</p>
  
  <pre><code>#pragma once
  class __declspec(dllexport) MyDLL
  {
  public:
      MyDLL(void);
      ~MyDLL(void);
  };
  
  extern "C" __declspec(dllexport) void HelloWorld();
  </code></pre>
  
  <p>I have tried providing the <code>complete path</code> also. But it is still failing. The <code>hInstLibrary</code> is setting to <code>0x00000</code>. I tried in <code>Release mode</code> too but the problem still lies there.
  But when I have tried with:</p>
  
  <pre><code>HMODULE hInstLibrary = LoadLibrary(_T("C:\\Windows\\System32\\aeinv.dll"));
  </code></pre>
  
  <p>it does load the <code>DLL</code>. So, please help me where is it going wrong. The DLL gets build properly, there is absolutely no error in building DLL. Then why am I facing this problem??</p>
  
  <p>Is there any setting need to be done for <code>Debug</code>.</p>