windows-mobile-6

Handle Windows Mobile Click event so that it doesn't “queue” while my program is blocking

跟風遠走 提交于 2020-01-07 06:06:40
问题 I've written a simple application for WinMo 6.x to entertain my daughter. It holds a set of animal image to animal noise pairs and randomly displays one of the images. When the image is clicked the animal noise plays and the two year old is distracted :-) and then the next image is displayed. However, since she tends to bash at the screen the actual flow is that the image displays and she clicks several times; several animal noises are played and then the image changes to the next random

Reboot Windows Mobile 6.x device programmatically using C#

若如初见. 提交于 2019-12-19 03:19:01
问题 My HTC HD2 can't be rebooted from OS, just shut down. So I want to write a small program to do that. Is it possible to programmatically reboot Windows Mobile 6.x device using C#? 回答1: You should use the documented ExitWindowsEx API. IOCTL should only be used on platforms lacking the ExitWindowsEx function call (Pocket PC 2000, 2002, and 2003). See the MSDN doc for more information. [DllImport("aygshell.dll", SetLastError=""true"")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool

How do I continue running after an unhandled exception?

我怕爱的太早我们不能终老 提交于 2019-12-17 14:14:10
问题 I have the following code in my application that is running after an unhandled exception: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var exception = e.ExceptionObject as Exception; if (exception != null) MessageBox.Show(exception.Message + " - " + exception.StackTrace); } but even if i catch unhandled exception my windows mobile

Print and Export to USB (File Format: XML/CSV/Excel) Functionality in Smart device[Symbo Motoroal MC75(Windows Mobile 6.1)] application?

北城余情 提交于 2019-12-14 00:03:45
问题 I have a form which contains combo boxes, textboxes and a data grid with many rows. I want to take print out (with generated barcode [application generating barcode as image]) and also want to export the data in that page as CSV/XML/Excel format to USB or Phone's Physical Directory. Please guide me how to it. This is my first Windows Mobile app. I am not so wise in Windows Mobile. Please help me find a better solution as a code or link or just direct me. 回答1: To create the Print Out, you will

Registering DLL on windows mobile 6

扶醉桌前 提交于 2019-12-13 07:24:30
问题 I have a DLL file that contains an ActiveX control that I need to register it programmatically by code. here is the code I am using to register that DLL file but it keeps giving me "The system cannot find the file specified" when calling the Start method, And I do not know why regsvrce.exe is not found, should I change current directory or something, please help. public static void registerDLL(string dllPath) { try { //'/s' : indicates regsvr32.exe to run silently. string fileinfo = "\"" +

C# - Windows Mobile - Bluetooth Pairing

馋奶兔 提交于 2019-12-13 05:32:37
问题 I've been given the task of building a Windows Mobile app for our company that quickly pairs a device by scanning it's bar code. I can discover the device, and talk to it, but I am stuck as far as pairing. In C# / Windows Mobile 6, how do I pair a device? I don't really need to talk to the device within the app, I need to pair it so other applications can use it. Is there an API I need to do this? I've seen things saying I need to register a pass key, etc? I can't seem to find any

C# ProgressBar Threading mobile 6

人盡茶涼 提交于 2019-12-12 05:13:33
问题 I am programming an application for downloading articles from an SQL Database on the internet. I have programmed the Website for managing the articles. Now I'm downloading the article List in gzip Format and then I decompress them to a xml-File. When I'm done I want to insert the articles to the mobile phone. This works great. Now I want to add an progress Bar to see the state of the insertion. I tried with Threading but this doesn't work. I'm posting some pieces of code from my application

Programmatically set PIN/Password used to unlock device

隐身守侯 提交于 2019-12-11 02:48:38
问题 Our software allows the users to lock their Windows mobile 6 devices using the following API call. [DllImport("aygshell.dll")] public static extern int SHDeviceLockAndPrompt(); When deploying our software our client would like to be able to set a universal unlock PIN/Password for all of their users so that each device does not need to be set-up manually. Is there any way to set this either programmatically or through a reg key? 回答1: I'm not sure about the Shell function call you have

Fastest way to delete the first few bytes of a file

左心房为你撑大大i 提交于 2019-12-11 01:02:05
问题 I am using a windows mobile compact edition 6.5 phone and am writing out binary data to a file from bluetooth. These files get quite large, 16M+ and what I need to do is to once the file is written then I need to search the file for a start character and then delete everything before, thus eliminating garbage. I cannot do this inline when the data comes in due to graphing issues and speed as I get alot of data coming in and there is already too many if conditions on the incoming data. I

bluetooth file send

回眸只為那壹抹淺笑 提交于 2019-12-07 17:47:32
问题 i'm new to bluetooth development and i found the 32netfeet . Right now i'm able to search for bluetooth devices nearby and connect to them but how do i send a file e.g SendTest.txt? I tried buttonclick event using the OBEX but i don't understand this is my example code: using InTheHand.Net; using InTheHand.Net.Sockets; using InTheHand.Net.Bluetooth; namespace BluetoothIntheHand { public partial class Form2 : Form { private Guid service = BluetoothService.DialupNetworking; private