title: GetProcAddress function in C++
body: <p>Hello guys: I've loaded my DLL in my project but whenever I use the GetProcAddress function. it returns NULL! what should I do?
  I use this function ( double GetNumber(double x) ) in "MYDLL.dll"</p>
  
  <p>Here is a code which I used:</p>
  
  <pre><code>typedef double (*LPGETNUMBER)(double Nbr);
  HINSTANCE hDLL = NULL;
  LPGETNUMBER lpGetNumber;
  hDLL = LoadLibrary(L"MYDLL.DLL");
  lpGetNumber = (LPGETNUMBER)GetProcAddress((HMODULE)hDLL, "GetNumber");
  </code></pre>