title: VB.net DLL Import from resources
body: <p>I have done quite a bit of research on this and have gotten many solutions that either do not work or i am not implementing correctly.</p>
  
  <p>I have a DLL named MyDLL.dll created as a win32 dll coded in c++.</p>
  
  <p>In VB.net i can call the starting function from the dll by doing this:</p>
  
  <pre><code> &lt;DllImport("MyDll.dll")&gt; Public Shared Function DLL_Function() As Boolean
   End Function
  </code></pre>
  
  <p>What i need is something like this:</p>
  
  <pre><code> &lt;DllImport(My.Resources.MyDLL)&gt; Public Shared Function INJECTION_MAIN() As Boolean
   End Function
  </code></pre>
  
  <p>Newby steps would be nice.</p>