windows-ce

Windows CE 6.0 time setting in registry

会有一股神秘感。 提交于 2019-12-10 17:48:20
问题 So I have a Motorola MC3100 Mobile Barcode scanning device with Windows CE 6.0. Now I want to get the device to sync its date/time on boot up with our domain controller using some registry files that I have created. I have used these 2 registry files below to get close to what I require. REG 1 [HKEY_LOCAL_MACHINE\Services\TIMESVC] "UserProcGroup"=dword:00000002 "Flags"=dword:00000010 "multicastperiod"=dword:36EE80 "threshold"=dword:5265C00 "recoveryrefresh"=dword:36EE80 "refresh"=dword

Stack overflow from native DLL called from managed application

 ̄綄美尐妖づ 提交于 2019-12-10 17:34:48
问题 I'm getting the infamous 0xC00000FD (stack overflow) exception from my application when I call into a native DLL. This is being done from a managed C# application on Windows CE 5 (SH4 processor). Compiling the same DLL for Windows XP using the same managed application and everything works fine (no overflow). The routine in the DLL is doing some very complex recursion which is ultimately what is causing the overflow, but again, it works fine on a PC. It seems like I may just need to adjust the

how to set preprocessor definition of _win32_wce in vs08

南笙酒味 提交于 2019-12-10 15:15:03
问题 How to set preprocessor defination in vs08.By default the value of _win32_wce is $(CEVER) set.but when I build the project the error "c1017 invalid integer constant expression" occur.and warning that environment variable $(CEVER) and $(ceplatform) not set. but when I set it _win32_wce=0x0420 then the all errors removes.but its hard coded.I do't want to do such type.so what should be value of _win32_wce. Note that my poject's earliar solution platform was PocketPC 2003 回答1: This macro : _WIN32

C# .NET 3.5 CF on Windows CE, Changing row background color in a DataGrid

丶灬走出姿态 提交于 2019-12-10 14:34:45
问题 I am using C# .NET 3.5 CF developing for Windows CE. I am working on a dataGrid and need to know how to change the background color of a row on the dataGrid. Thanks in advance 回答1: You have to manually draw it. Here's a blog article describing "selecting" a row, which is just painting it with a different color. 来源: https://stackoverflow.com/questions/7163481/c-sharp-net-3-5-cf-on-windows-ce-changing-row-background-color-in-a-datagrid

Serial I/O Overlapped/Non-Overlapped with Windows/Windows CE

我的未来我决定 提交于 2019-12-10 14:14:42
问题 I'm sorry this isn't much of a question, but more of to help people having problems with these particular things. The problem I'm working on requires the use of Serial I/O, but is primarily running under Windows CE 6.0. However, I was recently asked if the application could also be made to work under Windows too, so I set about solving this problem. I did spend quite a lot of time looking around to see if anyone had the answers I was looking for and it all came across as a lot of

What is the relationship between C and the Windows API?

天涯浪子 提交于 2019-12-10 12:46:09
问题 I looked at some other questions on SO and its not clear if c is built on top of, under, or alongside the WINAPI. Like for example could someone write something in pure c that was able to open a window, or would they need to use the windows api? I noticed similarities between the c (library?) version of opening a file (fopen) vs the windows API version (CreateFile) which makes me wonder if one is just a wrapper for the other. Does anyone know? If windows is running; is a programmer forced to

Fullscreen app in wince 6.0 c#

醉酒当歌 提交于 2019-12-09 10:31:11
问题 I have my app and want to make it run in full-screen mode, no task-bar. I found out how to hide the windows bar but when I start my app it doesn't cover the space of the windows task-bar, despite this last is hidden. I found this but it didn't work. I couldn't find examples of this regarding to wince. I have FormBorderStyle = None , and WindowsState = Maximized SOLUTION: I find a way of doing it. An important tip is to have the WindowState = Normal (it took me some time to find this problem).

Visual Studio 2008: Don't deploy SQL Server Compact 3.5 when debugging

会有一股神秘感。 提交于 2019-12-08 18:48:27
问题 I'm using VS2008 to create a Compact Framework application for a Windows CE 5.0 device (Datalogic Kyman). I'm using SQL Server Compact 3.5 in my application. However, I'm debugging on a Kyman that still has Windows CE 4.2 installed (attached via USB using Mobile Device Center). My problem: VS2008 does not recognize that SQL Server Compact is already installed on the device and asks me to install SQL Server Compact every time I'm running my application from the IDE. The installer shows me a

How to format a number with thousands separator in C/C++

走远了吗. 提交于 2019-12-08 14:09:11
问题 I am trying to do this simple task. Just to format a number using C or C++, but under Windows CE programming. In this environment, neither inbue nor setlocale methods work. Finally I did this with no success: char szValue[10]; sprintf(szValue, "%'8d", iValue); Any idea? 回答1: Here's one way - create a custom locale and imbue it with the appropriately customised facet: #include <locale> #include <iostream> #include <memory> struct separate_thousands : std::numpunct<char> { char_type do

QueryPerformanceCounter() Test for Windows Embedded Compact 7

岁酱吖の 提交于 2019-12-08 13:11:35
问题 Loop through QueryPerformanceCounter() and save the value: // Main loop for timer test for ( int i = 0; i < ITERATIONS; i++ ) // ITERATIONS = 1000 { QueryPerformanceCounter(&li); time[i] = double(li.QuadPart) / PCFreq; //1,193,182 per second } //calculate the difference between each call // and save in difference[] for ( int j = 0; j < (ITERATIONS - 1) ; j++ ) { difference[j] = time[j+1] - time[j]; } (Divide by PCFreq gives time between each call.) The high resolution timer/counter is