How to register a DLL in Windows Mobile
-
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
-
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
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 pathI know nothing , I know nothing ...