title: Use TDictionary in C++ Builder XE2
body: <p>Currently I want to use <code>TDitionary</code> in C++ Buillder XE2</p>
  
  <p>After I read the <a href="http://docwiki.embarcadero.com/Libraries/XE2/en/System.Generics.Collections.TDictionary" rel="nofollow">documentation</a> I thought it should have been easy but I even can not create a <code>TDictionary</code> object...</p>
  
  <p>My code:</p>
  
  <pre><code>#include &lt;vcl.h&gt;
  #pragma hdrstop
  #include &lt;Generics.collections.hpp&gt;
  #include "TDictionaryTest.h"
  
  #pragma package(smart_init)
  #pragma resource "*.dfm"
  TForm2 *Form2;
  
  void __fastcall TForm2::FormCreate(TObject *Sender)
  {
      TDictionary__2 &lt;String, String&gt; *Dir = new  TDictionary__2&lt;String, String&gt;(0);
      delete Dir;
  }
  </code></pre>
  
  <p>Error messages:</p>
  
  <pre><code>[ILINK32 Error] Error: Unresolved external '__fastcall           System::Generics::Collections::TDictionary__2&lt;System::UnicodeString,   System::UnicodeString&gt;::~TDictionary__2&lt;System::UnicodeString, System::UnicodeString&gt;()'  referenced from ...\PRACTICE\C++\WIN32\DEBUG\TDICTIONARYTEST.OBJ
  [ILINK32 Error] Error: Unresolved external '__fastcall System::Generics::Collections::TEnumerable__1&lt;System::Generics::Collections::TPair__2&lt;System::UnicodeString, System::UnicodeString&gt; &gt;::~TEnumerable__1&lt;System::Generics::Collections::TPair__2&lt;System::UnicodeString, System::UnicodeString&gt; &gt;()' referenced from ...\PRACTICE\C++\WIN32\DEBUG\TDICTIONARYTEST.OBJ
  [ILINK32 Error] Error: Unresolved external 'System::Generics::Collections::TDictionary__2&lt;System::UnicodeString, System::UnicodeString&gt;::' referenced from ...\PRACTICE\C++\WIN32\DEBUG\TDICTIONARYTEST.OBJ
  [ILINK32 Error] Error: Unresolved external '__fastcall System::Generics::Collections::TDictionary__2&lt;System::UnicodeString, System::UnicodeString&gt;::TDictionary__2&lt;System::UnicodeString, System::UnicodeString&gt;(int)' referenced from ...\PRACTICE\C++\WIN32\DEBUG\TDICTIONARYTEST.OBJ
  [ILINK32 Error] Error: Unable to perform link
  </code></pre>
  
  <p>Anyone has any idea? Thanks!</p>