windows-mobile

Making a Windows Mobile device emulate a Bluetooth HID device

匆匆过客 提交于 2019-11-29 15:47:38
问题 I'm looking for a way to connect a Windows Mobile device to a PC via Bluetooth and have it show up on the PC as a HID device (i.e. Keyboard or Mouse). I imagine this would mostly be a matter of modifying the available Bluetooth profiles on the Windows Mobile device so that it exposes a Bluetooth HID interface... Is that even possible? Would it require a custom driver or something on the WinMo device?? For the most part, my main requirement is that it not require ANY special software on the PC

C++ or C# to program mobile barcode device?

冷暖自知 提交于 2019-11-29 14:33:02
问题 I will be developing some applications using mobile barcode scanners and need to choose between C++ and C# for coding on the scanners. I am considering Intermec's CK31 or similar for the combination of wifi, scanning choices, programmability and user interface options. It runs Windows CE .NET 4.2 according to their spec sheet. Intermec's Developer Library comes with .Net and C++ SDKs. My previous Win CE 2003 experience is in C++ (MFC GUI, sockets and serial comms). I'm comfortable in C# with

Deploying an application to Windows Mobile Pocket PC

别说谁变了你拦得住时间么 提交于 2019-11-29 14:31:14
Iv been encountering problems with disk space when deploying my app to a pocket pc emulator. So what Iv done is set up a shared directory on my pc to simulate a SD card, Iv copied the program there manually and then run it from the emulator, with this approach I still need to do the visual studio deployment as well so that so that the .net compact framework gets copied over. How do I make visual studio deploy to the shared dir? The 'Output file folder' is grayed out and I can only choose from a list of pre-defined locations. Sorry maybe I want not clear, when I said "I can only choose from a

Easy IPC on Windows Mobile?

北慕城南 提交于 2019-11-29 10:59:31
In a C++ project (i.e. no .NET) on Windows Mobile, I am looking for a way to easily communicate between two independently running applications. Application A would run a service, whereas application B would provide the user some functionality - for which B has to call some of A's functions. I would rather not go through implementing anything in COM. In fact, I would prefer not to do any kind of serialization or similar (i.e. this would exclude using sockets/pipes/files), but rather have B pass all parameters and pointers over to A, just like if A were part of B. Also, apps C, D and E should be

Scheduling Windows Mobile apps to run

守給你的承諾、 提交于 2019-11-29 09:43:11
问题 How do you schedule a Windows Mobile application to periodically start up to perform some background processing. For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time. The app is a native C/C++ app on Windows Mobile 5.0 or later. 回答1: the function you need is: CeRunAppAtTime( appname, time ) that isn't the exact signature, there is also CeRunAppAtEvent , they should both be in the MSDN docs (but linking is

Can't find PInvoke DLL error in Windows Mobile

半城伤御伤魂 提交于 2019-11-29 09:28:27
I am having a lot of trouble getting a basic scenario to work on windows mobile 5.0 emulator. I have a winforms app that eventually calls into native code. Deployment works fine and all the native DLLs are copied in the same folder as the winforms .exe. I also verified this is the case with Remote File Viewer tool. However when I launch my app, it always fails with "Can't find PInvoke dll -- System.MissingMethodException" error (when the time comes to call into native code, the DllImport attribute is rendered useless). I know that the native dll is found in the same folder as the executable.

VS 2008 Professional, Smart Device .NET C# project - slow build

馋奶兔 提交于 2019-11-29 09:10:03
问题 I have VS 2008 Professional and a Smart Device .NET C# project. I have ~100 cs files in total. The build takes a very long time, I have to wait for linker approx. 1min (60s) every time I compile the project. I have Core i3, 4GB RAM, 7200rpm disk. What causes this and how can I optimize the build? Any Visual Studio options? 回答1: If you follow the advise from Hans Passant's comment and set MSBuild to diagnostic output it will give a clearer picture of just what is taking the time. If you find

How can I run code on Windows Mobile while being suspended?

眉间皱痕 提交于 2019-11-29 08:45:23
I'd like to run some C++ code while the Windows Mobile PocketPC is (or seems) being suspended. An example what I mean is the HTC Home plugin that shows (among others) a tab where the HTC Audio Manager can be used to play back mp3 files. When I press the on/off button, the display goes black, but the audio keeps playing. The only button to switch back on is the on/off button, as expected. What I tried so far is to capture hardware button presses (works) and switch off the video display (works). What doesn't work with this approach is that when (accidentally) pressing any key on the device, the

How can I shutdown a Windows Mobile device programatically

情到浓时终转凉″ 提交于 2019-11-29 08:19:14
I would like to programatically shutdown a Windows Mobile device using Compact framework 2.0, Windows mobile 5.0 SDK. Regards, It probably not a great idea to do it from your app - the device has a power button for a reason and shutting down the app can cause user confusion and frustration. If you must do it, and you are using Windows Mobile 5.0 or later, you can P/Invoke ExitWindowsEx like this: [Flags] public enum ExitFlags { Reboot = 0x02, PowerOff = 0x08 } [DllImport("coredll")] public static extern int ExitWindowsEx(ExitFlags flags, int reserved); ... ExitWindowsEx(ExitFlags.PowerOff, 0);

Get ip address of host pc from windows mobile when connected via ActiveSync

為{幸葍}努か 提交于 2019-11-29 07:32:44
I have a .Net Compact app running on Windows Mobile, and I want to be able to connect to a webservice running on the 'host' machine (i.e. the desktop the PDA is plugged into) when connected via ActiveSync, but I don't know the ip address of the host. How can I find the ip of the desktop PC progromatically on the PDA? I've found a KB article How To Retrieve the IP Address of the Remote PPP Peer , which uses the host "PPP_Peer". So I tried: Dns.GetHostEntry("PPP_Peer").AddressList[0] And that does give me what I'm looking for (169.254.2.2 on the PC I'm using at the moment). Getting the address