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
 

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