title: Loading a .NET DLL from Resources inside a Win32/clr DLL
body: <p>I wrote a <strong>Win32-DLL</strong> (with clr support in VS 2010/13, c++) as extension for another/old VB6 app and use the opensource-dll PDFSharp.</p>
  
  <p>It works fine, but if the "PDFSharp.dll" removed from Directory the Application crashes if the program try to load my dll.
  I want to include the Sharp DLL into mine, so that only one <strong>DLL</strong> is needed.
  I tried to add it to resources, and load/catch the error during run time by </p>
  
  <pre><code>AppDomain^ root = AppDomain::CurrentDomain;
  
  root-&gt;CurrentDomain-&gt;AssemblyResolve += gcnew ResolveEventHandler(MyResolveEventHandler);
  </code></pre>
  
  <p>in the first Function that the app calls, but my Problem is, the app/dll crashes before i can handle something.</p>
  
  <p>ILMerge can't help, because it is a Win32/net(clr) DLL not a 100% NET-DLL.</p>