p/invoke on a dll as an embedded resource ??

  • Thread starter Thread starter A.User
  • Start date Start date
A

A.User

I have a dll built with emVC++. I am P/Invoking some methods in the dll from
C#.
I added the dll to the project so it is deployed along with the app. and it
works fine.
I thought I could declare the dll as an "embedded resource" and everything
including
the dll will get rolled up into one big .exe. It looks like it worked as
there is now just
one big .exe that is bigger by the size of the dll.
But it seems to have broken the ability to P/Invoke on the dll I embedded. I
now get the all
to common "method not found" error.

Is there a way to make this work or am I waisting my time?
 
You will have to extract and save the dll during the run-time in order to
make it work.
 
Back
Top