Missing Method Exception After Including Function From A .Lib

  • Thread starter Thread starter Marauderz
  • Start date Start date
M

Marauderz

hi guys, having a weird problem here. I'm making a native DLL in order to
access a static library. Before I did anything I placed a dummy function
that just MessageBox'ed a Hello World in it and verified that my native DLL
was compiled properly and could be called via P/Invoke. Then I linked in the
..Lib and I started getting Missing Method Exceptions, on both the dummy
function AND the new function that's calling the method in the .lib.

I've already did a Dumpbin to verify that both the .lib and .dll are for the
right processor (Thumb)

Has anyone else ran into a problem like this before?
 
Hey Friend, I'm also facing the same problem, but still no luck (Got
few clues, search for the same exception on this news group).

Guys,
Pls. help us.

Thanks
Vijay.
 
The MissingMethodException could be thrown because you are trying to
invoke function from .dll which was compiled against newer SDK than
platform required.

E.g. a .dll compiled with "wce400\STANDARDSDK" (go to
Tools->Options->Directory to see which SDK is using) will throw the
MissingMethodException in PocketPC 2002 but will work correctly in
PocketPC 2003.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top