windows-ce

What is the kbhit equivalent for Windows CE?

老子叫甜甜 提交于 2019-12-22 23:16:20
问题 What is the kbhit equivalent for Windows CE? In particular, I'm wondering about windows CE 6.0. I guess more generally, is there a way to do non-blocking reads from stdin? 回答1: You would need to process the WM_KEYDOWN messages in Windows CE. Have a look here for some details on how to do this. 回答2: If all you're doing is looking for a key, you could poll using GetKeyState or GetAsyncKeySytate. 来源: https://stackoverflow.com/questions/926844/what-is-the-kbhit-equivalent-for-windows-ce

Control a wince device from desktop

喜夏-厌秋 提交于 2019-12-22 08:44:21
问题 I would like to know if there is a tool simillar to mymobiler for Wince 5.0 which I can use to control the device from my desktop. I use mymobiler (v1.25) but I believe it controls only devices running on WM5 and above. Any help would be highly apprecited as the screen of my device has stopped working. 回答1: I use MyMobiler myself when I am coding for WinCE5.0 (not very often but I do know that it works.) In your extracted MyMobiler zip file is three versions of remote.exe. remote.exe remote

Windows CE or Windows Embedded Standard?

心已入冬 提交于 2019-12-22 07:12:12
问题 im building an interactive portable ad campaign device (x86 platform) with touchscreen and stuffs. which is better OS for the device, Win CE or Win embedded standard (XPE). i need to provide support for multimedia platform such as Flash for easy ad development. thanks. 回答1: Windows CE is (+) Much cheaper . A few $. If you are planing 100s of devices this is a big factor. (-) Not as easy to develop against, but the Windows API & .NET are mostly the same. (+) Considered less vulnerable to

Checking if a printer is attached

别说谁变了你拦得住时间么 提交于 2019-12-22 06:35:44
问题 Is there a way in Windows (which works in Windows CE) to check if a printer is attached and communicating to LPT1 in C++? [Edit] More info: We are currently working with a generic Windows CE printer driver - pcl.dll - by passing it into CreateDC , to get the DC for the printer. We can't call PrintDlg() to show the print dialog because it is "too complicated looking," but we also can't call it with PD_RETURNDEFAULT because we do not want to use the default printer. So, we are manually setting

How to debug a fatal error that happens after calling Application.Exit() in .NET CF 3.5 WinForms application for Windows CE 6?

徘徊边缘 提交于 2019-12-21 21:12:32
问题 I am porting a .NET CF 1.0 WinForms application (for older versions of Windows CE) to .NET CF 3.5 (for Windows CE 6). The problem is that, a few seconds after Application.Exit() is called, I get a flash of a "fatal error" message box, which simply says something to the effect of "A fatal error has occurred and the application will terminate.". Since I'm using a Chinese version of Windows CE, the message is in Chinese and I'm not sure what the exact message is in English. Anyway, the error

Is it possible to kill WaitForSingleObject(handle, INFINITE)?

早过忘川 提交于 2019-12-21 12:08:49
问题 I am having problems closing an application that uses WaitForSingleObject() with an INFINITE timout. The full picture is this. I am doing the following to allow my application to handle the device wakeup event: Register the event with: CeRunAppAtEvent("\\\\.\\Notifications\\NamedEvents\\WakeupEvent", NOTIFICATION_EVENT_WAKEUP); Start a new thread to wait on: Thread waitForWakeThread = new Thread(new ThreadStart(WaitForWakeup)); waitForWakeThread.Start(); Then do the following in the target

Unique Machine ID for a Windows CE Device

我与影子孤独终老i 提交于 2019-12-21 06:41:26
问题 I need to generate unique machine ID for a CE 6.0 device. On Windows OS, I was using the WMI to obtain some hardware identifiers from which I constructed this ID. Apparently, WMI is not supported on Win CE so I am looking for alternatives. At the moment I am playing with OS image that I have constructed in Platform Builder and testing my app in emulator, only later I will be delivered the real WinCE device. I have tried both GetDeviceUniqueID and KernelIoControl(IOCTL_HAL_GET_DEVICEID,... but

Unique Machine ID for a Windows CE Device

こ雲淡風輕ζ 提交于 2019-12-21 06:41:19
问题 I need to generate unique machine ID for a CE 6.0 device. On Windows OS, I was using the WMI to obtain some hardware identifiers from which I constructed this ID. Apparently, WMI is not supported on Win CE so I am looking for alternatives. At the moment I am playing with OS image that I have constructed in Platform Builder and testing my app in emulator, only later I will be delivered the real WinCE device. I have tried both GetDeviceUniqueID and KernelIoControl(IOCTL_HAL_GET_DEVICEID,... but

Compile Boost 1.47 for Windows CE

穿精又带淫゛_ 提交于 2019-12-21 03:34:19
问题 There is actually a bit of information out there about people trying to build the Boost libraries for Windows CE, but no one has reported success or even given the steps required to do so. With the two latest releases (1.46 and 1.47) the release notes have mentioned that one of their test compilers was "Visual C++, Windows Mobile 5, with STLport: 9.0," which seems to imply that success has been achieved (as a side note the compiler given is interesting since the latest STLPort I've been able

Boost C++ and Windows CE 6.0

余生长醉 提交于 2019-12-21 02:51:49
问题 I've succefully built STLPort and Boost c++ for Windows CE 6.0. I can run application with Windows CE 6 and STLPort both in debug end release mode. I've built boost with the following batch file: @echo off cls :build :release echo building boost in release shared library bjam ^ --with-system ^ --with-chrono ^ --with-date_time ^ --with-thread ^ --with-atomic ^ toolset=msvc-9.0~CEPlatform ^ variant=release ^ threading=multi ^ stdlib=stlport-5.2.1 ^ link=shared ^ runtime-link=shared :debug echo