CEMAPI use in C# :confused:
-
I am trying to develop a program for the PocketPC in C#. It requires the use of cdmapi which only is available in the SDK as cemapi.h and cemapi.lib for C++. I really don't want to do this in C++. How can I use/access/import/convert/??? the available library for use in C#. Thank in advance for the advice camasmartin hobby programmer
-
I am trying to develop a program for the PocketPC in C#. It requires the use of cdmapi which only is available in the SDK as cemapi.h and cemapi.lib for C++. I really don't want to do this in C++. How can I use/access/import/convert/??? the available library for use in C#. Thank in advance for the advice camasmartin hobby programmer
You'll have to P/Invoke all the functions and redefine the structs and interfaces, as well as the constants/enumerations required for the functions and interface methods. I'm not on my machine with the WinCE SDK, but since the CEMAPI exposes COM interface, it might also use a typelib. In this case, you can use tlbimp.exe to import a typelib as a COM interop assembly (RCW).
-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----