title: Unresolved external symbol
body: <p><a href="http://msdn.microsoft.com/en-us/library/dd368152(v=VS.85).aspx" rel="noreferrer">Main article</a> there is a <a href="http://msdn.microsoft.com/en-us/library/dd371579(v=VS.85).aspx" rel="noreferrer">header file</a> and a <a href="http://msdn.microsoft.com/en-us/library/dd371577(v=VS.85).aspx" rel="noreferrer">source file</a>. After copying those two files and adding few headers:</p>
  <pre><code>#include &lt;Windows.h&gt;
  #include &lt;d2d1.h&gt;
  #pragma comment(lib, &quot;d2d1&quot;)
  #include &lt;dwrite.h&gt;
  #include &lt;d2d1helper.h&gt;
  #include &quot;SafeRelease.h&quot;
  </code></pre>
  <p>//Safe realease file</p>
  <pre><code>template&lt;class Interface&gt;
  inline void
  SafeRelease(
      Interface **ppInterfaceToRelease
      )
  {
      if (*ppInterfaceToRelease != NULL)
      {
          (*ppInterfaceToRelease)-&gt;Release();
  
          (*ppInterfaceToRelease) = NULL;
      }
  }
  </code></pre>
  <p>when I'm trying to compile this project I'm getting an error:</p>
  <p><strong>Error 1   error LNK2019: unresolved external symbol __imp__DWriteCreateFactory@12 referenced in function &quot;private: long __thiscall SimpleText::CreateDeviceIndependentResources(void)&quot; (?CreateDeviceIndependentResources@SimpleText@@AAEJXZ)</strong></p>
  <p>Have no idea why. All? headers are included. Hopefuly some of you will be able to help with this.<br />
  Thank you.</p>