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. How to register a DLL in Windows Mobile

How to register a DLL in Windows Mobile

Scheduled Pinned Locked Moved C#
c++csharpdatabasehelptutorial
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.
  • K Offline
    K Offline
    kingori
    wrote on last edited by
    #1

    HI and thank you in advance. I am developing a windows mobile application and have encountered some serious problems. First, I was a Visual c++ programmer and in the process of developing my MFC smart device, I realized there is not much offered in c++ to work with database on smart devices. I so badly needed my application to connect to DB ( and all the examples I was getting were in .NET) that i decided to learn .NET, After a few days, I learnt some c# and developed my application that connected very well to DB as I wanted. This application was supposed to be installed on windows mobile devices and be used to make sales in the fields ( e.g by beverage distributors who move around with vehicles). Hurdle number two came when I needed to print a fiscal receipt for a sale posted by my application. From my hardware vendor, he recomended the a fiscal printer called TSL Mobile BT, which is approved in my country (Kenya) and connects to the devices via blue tooth. I was also told that another company has already made an application that connects with the device from a PDA. So I went online http://www.tremol.bg/us/en/products/[^] and downloaded the dll for the gadget. It has a sample C# desktop application. I added the library (ZFPCOMLib)to my application and when I run the application I got this error. COM Object with CLSID '{239FFB-......27AA} cannot be created due to the following error.Class not registered. I googled on how to register a dll in windows mobile and found a solution as using regsvrce.exe, but after I copied it to the emulator but was unable to launch it ( in desktops we use cmd and type regsvr xx.dll) but i dint know if windows mobile has cmd and how to launch it or even how to open RUN command.. (if you are done laughing, lets continue), then I so another shocking forum and someone said that a dll working on Desktop application would not work on windows mobile ( due to the target processor for the dll), but the hardware vendor told me someone else had been able to hack it. Now am stranded, having done a whole desktop operation to manage the inventory for the distributor, and the mobile version doing the sales ( but failing to print fiscal receipts as demanded by the client). Dear programmers, Please guide me on what to do next.. If this goes through I shall consider a small reward to the person who shall help me crack it ( first). Note that my p

    L 1 Reply Last reply
    0
    • K kingori

      HI and thank you in advance. I am developing a windows mobile application and have encountered some serious problems. First, I was a Visual c++ programmer and in the process of developing my MFC smart device, I realized there is not much offered in c++ to work with database on smart devices. I so badly needed my application to connect to DB ( and all the examples I was getting were in .NET) that i decided to learn .NET, After a few days, I learnt some c# and developed my application that connected very well to DB as I wanted. This application was supposed to be installed on windows mobile devices and be used to make sales in the fields ( e.g by beverage distributors who move around with vehicles). Hurdle number two came when I needed to print a fiscal receipt for a sale posted by my application. From my hardware vendor, he recomended the a fiscal printer called TSL Mobile BT, which is approved in my country (Kenya) and connects to the devices via blue tooth. I was also told that another company has already made an application that connects with the device from a PDA. So I went online http://www.tremol.bg/us/en/products/[^] and downloaded the dll for the gadget. It has a sample C# desktop application. I added the library (ZFPCOMLib)to my application and when I run the application I got this error. COM Object with CLSID '{239FFB-......27AA} cannot be created due to the following error.Class not registered. I googled on how to register a dll in windows mobile and found a solution as using regsvrce.exe, but after I copied it to the emulator but was unable to launch it ( in desktops we use cmd and type regsvr xx.dll) but i dint know if windows mobile has cmd and how to launch it or even how to open RUN command.. (if you are done laughing, lets continue), then I so another shocking forum and someone said that a dll working on Desktop application would not work on windows mobile ( due to the target processor for the dll), but the hardware vendor told me someone else had been able to hack it. Now am stranded, having done a whole desktop operation to manage the inventory for the distributor, and the mobile version doing the sales ( but failing to print fiscal receipts as demanded by the client). Dear programmers, Please guide me on what to do next.. If this goes through I shall consider a small reward to the person who shall help me crack it ( first). Note that my p

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi , I don't know if this is possible , cause I didn't have windows mobile right now to test this function But I will try my best to help you Try to write a simple .NET Application that uses this code

      const int REG_SUCCESS = 0x0;

      const string ControlPATH = @"c:\WindowsMobile\MyDLL.dll";

      [DllImport(ControlPATH)]
      public static extern int DllRegisterServer ();

      [DllImport(ControlPATH)]
      public static extern int DllUnregisterServer ();

      // How to use
      // Just call this function DllRegisterServer ();
      // Don't forget to change ControlPATH to your Dll path

      I know nothing , I know nothing ...

      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