J
Jim Wilson [eMVP]
Any method you wish to call from .NET CF will need to be marked extern "C"
declspec(dllexport)
Example:
extern "C" declspec(dllexport) void MyFunc() {..}
The extern "C" disables name mangling so that it can be easily imported and
the declspec exports it from the DLL.
You'll then need to use the DllImport command to map it into CF
[DllImport("YourDLLName.dll")]
static extern void MyFunc();
Here are some good articles on dealing with interop in CF.
http://smartdevices.microsoftdev.com/Learn/Articles/501.aspx
http://smartdevices.microsoftdev.com/Learn/Articles/500.aspx
http://smartdevices.microsoftdev.com/Learn/Articles/514.aspx
Jim Wilson, eMVP
http://www.jwhh.com
http://www.develop.com
declspec(dllexport)
Example:
extern "C" declspec(dllexport) void MyFunc() {..}
The extern "C" disables name mangling so that it can be easily imported and
the declspec exports it from the DLL.
You'll then need to use the DllImport command to map it into CF
[DllImport("YourDLLName.dll")]
static extern void MyFunc();
Here are some good articles on dealing with interop in CF.
http://smartdevices.microsoftdev.com/Learn/Articles/501.aspx
http://smartdevices.microsoftdev.com/Learn/Articles/500.aspx
http://smartdevices.microsoftdev.com/Learn/Articles/514.aspx
Jim Wilson, eMVP
http://www.jwhh.com
http://www.develop.com