Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. CEMAPI use in C# :confused:

CEMAPI use in C# :confused:

Scheduled Pinned Locked Moved C#
questioncsharpc++
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    camasmartin
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • C camasmartin

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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-----

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups