title: Importing .dll into Qt
body: <p>I want to bring a .dll dependency into my Qt project.</p>
  
  <p>So I added this to my .pro file: </p>
  
  <pre><code>win32 {
  LIBS += C:\lib\dependency.lib
  LIBS += C:\lib\dependency.dll
  }
  </code></pre>
  
  <p>And then (I don't know if this is the right syntax or not)</p>
  
  <pre><code>#include &lt;windows.h&gt;
  Q_DECL_IMPORT int WINAPI DoSomething();
  </code></pre>
  
  <p>btw the .dll looks something like this:</p>
  
  <pre><code>#include &lt;windows.h&gt;
  BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, 
                                          LPVOID lpReserved)
  {
      return TRUE;
  }
  
  extern "C"
  {
  int WINAPI DoSomething() { return -1; }
  };
  </code></pre>
  
  <p>Getting error: unresolved symbol?</p>
  
  <p>Note: I'm not experienced with .dll's outside of .NET's ez pz assembly architechture, definitely a n00b.</p>