MissingMethodException - Calling C code from C# app

  • Thread starter Thread starter Sinex
  • Start date Start date
S

Sinex

Hi,
I made a C# app for pocket pc 2003. This guy works fine. Then I needed to
encrypt a byte stream (using some AES mode). For that I have to use an AES
implementation that was written in C ! So, I created a Managed C++ class
that calls the C code (using the IJW concept) and made a dll of it. Now I
reference this DLL in my smart device C# app and it compiled fine. But when
I deployed to the device and tested i get a MissingMethodException! Is this
because I'm making calls to C code?

Sinex
 
You can't generate a CF assembly in managed C++, so it's targeting the wrong
framework and can't be used in your CF app.

-Chris
 
Back
Top