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. Mobile Development
  3. Mobile
  4. COM Objects and Pocket PC 2003

COM Objects and Pocket PC 2003

Scheduled Pinned Locked Moved Mobile
questioncsharpc++comhardware
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.
  • J Offline
    J Offline
    Jon Pawley
    wrote on last edited by
    #1

    Hi there. Couldn't decide whether to post this in the Embedded/Mobile forum or the COM forum. Plumped for this one, hope it's reasonably on-topic. I am looking at writing a new Pocket PC 2003 app using the .NET Compact Framework. Pretty excited, as this is a "step up" from using the eVC++ 3.0 tools that I have been using for the past few years. One of the requirements of the new app is that it will have a customised SIP--basically to have much larger key buttons so as to allow entering data using a (fat) finger. On Pocket PC 2002 that I have previously worked on, this involved writing a COM object DLL implementing the IInputMethod interface, and having the DLL register itself when installing the CAB. Then, in the actual application, the COM object would be instanciated using CoCreateInstance(). Using .NET CF, I am not able to write COM objects, is that right? Which means I would have to "drop down" to using eVC++ 4.0 (4.0 rather than 3.0, in order to target PPC2003) to write the COM object. Then, in the .NET CF application, I would need to use a combination P/Invoke and a COM-object-DLL-wrapper to "get at" the custom SIP that I implement in the above DLL. Does this make sense to you, and do you think I'm on the right track? I guess I'm really just asking so that I know what is possible, and to confirm that I am indeed heading in right direction... Any feedback would be much appreciated. Cheers, Jon

    G 1 Reply Last reply
    0
    • J Jon Pawley

      Hi there. Couldn't decide whether to post this in the Embedded/Mobile forum or the COM forum. Plumped for this one, hope it's reasonably on-topic. I am looking at writing a new Pocket PC 2003 app using the .NET Compact Framework. Pretty excited, as this is a "step up" from using the eVC++ 3.0 tools that I have been using for the past few years. One of the requirements of the new app is that it will have a customised SIP--basically to have much larger key buttons so as to allow entering data using a (fat) finger. On Pocket PC 2002 that I have previously worked on, this involved writing a COM object DLL implementing the IInputMethod interface, and having the DLL register itself when installing the CAB. Then, in the actual application, the COM object would be instanciated using CoCreateInstance(). Using .NET CF, I am not able to write COM objects, is that right? Which means I would have to "drop down" to using eVC++ 4.0 (4.0 rather than 3.0, in order to target PPC2003) to write the COM object. Then, in the .NET CF application, I would need to use a combination P/Invoke and a COM-object-DLL-wrapper to "get at" the custom SIP that I implement in the above DLL. Does this make sense to you, and do you think I'm on the right track? I guess I'm really just asking so that I know what is possible, and to confirm that I am indeed heading in right direction... Any feedback would be much appreciated. Cheers, Jon

      G Offline
      G Offline
      gevalia
      wrote on last edited by
      #2

      You are correct. .NETCF does not support COMponent bridge. My preference would be as you said, to create a wrapper for the COMponent and PInvoke through it. Regards, Ron Miller

      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