title: VC++ Compile error on DLL project
body: <p>Here is my code:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;Windows.h&gt;
  
  extern "C" int __stdcall myfunction ();
  
  BOOL WINAPI DllMain ( HINSTANCE hin, DWORD reason, LPVOID lpvReserved );
  
  int __stdcall myfunction ()
  {
        MessageBoxW(NULL,L"Question",L"Title",MB_OK);
        return 0;
  }
  
  BOOL WINAPI DllMain ( HINSTANCE hin, DWORD reason, LPVOID lpvReserved )
  {
      return TRUE;
  }
  </code></pre>
  
  <p>When i compile show these errors:</p>
  
  <blockquote>
    <p>error LNK2028: reference to simbol
    (token) unresolved (0A000027) "extern "C" int <strong>stdcall
    MessageBoxW(struct HWND</strong> *,wchar_t const *,wchar_t const *,unsigned
    int)"  (?MessageBoxW@@$$J216YGHPAUHWND__@@PB_W1I@Z) in the function
    "extern "C" int __stdcall myfunction(void)" (?myfunction@@$$J10YGHXZ)</p>
    
    <p>error LNK2019: External symbol "extern "C" int <strong>stdcall
    MessageBoxW(struct HWND</strong> *,wchar_t const *,wchar_t const *,unsigned
    int)" (?MessageBoxW@@$$J216YGHPAUHWND__@@PB_W1I@Z) unresolved used in
    the function "extern "C" int __stdcall myfunction(void)"
    (?myfunction@@$$J10YGHXZ)</p>
  </blockquote>
  
  <p>I dont understand where is the error and their cause.
  If someone can help me to fix it I will thanks alot :)</p>