C#, Compact Framework, and Password.cpl

  • Thread starter Thread starter Jim Wilson [eMVP]
  • Start date Start date
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
 
Hey all,

I'm investigating writing a PPC password redirect using
C#. I'm aware of Knowledge Base article 314989 which
explains writing a PPC UI Password Redirect using CE
Platform SDK and C++.

My question is, what's the feasability of doing this
using VS.NET and C#? Do I need Platform SDK? I've never
written anything similar to this, so I'd really
appreciate some pointers.

Thanks,
CR
 
Back
Top