windows-ce

Alternative to Node js for Win CE

北城余情 提交于 2019-12-25 09:04:04
问题 My requirement is run an embedded HTML\JS Web applications on a Win CE-ARM device. We also have a Linux-ARM device for which we used Node js to run any Javascript app that also uses node modules like require,express and such. Basically, we would like start a node server inside the device that serves HTML/JS pages as in when requested. Since Win CE -ARM doesn't support node js and porting of node js to Win CE is an humongous task, we are looking for alternatives to node js in Win CE. I looked

The file name is not valid. Check the file name for the database. [ File name = file:\C:\Users\

一笑奈何 提交于 2019-12-25 07:46:55
问题 I have a windows CE application that uses SQL CE and .Net3.5 in MS VS 2008. when I run my application in mobile emulator every thing is OK and mobile application works fine. But when I run application.exe in Debug folder on my PC I see the error below! i Googled it , but couldn't find any solution. have anybody got a solution for it? This is my LongLongAddress\MyMobileApp\bin\Debug folder : 回答1: Yeah, I have a mistake that want to open a CF app on a PC !!! :) when i create a .cab file and

WinCE: Debug version works, Release version crashes while reading from stream device driver

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 04:54:33
问题 i am creating a Windows CE 6.0 in Visual Studio 2005 with Platform builder. I integrated a stream device driver (via USB HID). I also have a small application that opens a connection to the device and reads data from it. When i build a Debug-Version of this Windows CE 6.0 and debug it on the device i can start the application and the communication to the device works fine. Now i build a Release-Version (no changes of Sources!) of the Windows CE 6.0, run it on the device and start the

Is this the right way to query a SQL Server CE table for a record, populating and returning a custom object?

家住魔仙堡 提交于 2019-12-24 19:29:47
问题 The code below works, but I'm wondering if it's more loquacious than necessary: public static InventoryItem SelectLocalInventoryItem(string ID) { const int ID_COL = 0; const int PACKSIZE_COL = 1; const int DESCRIPTION_COL = 2; const int DEPTDOTSUBDEPT_COL = 3; const int UNITCOST_COL = 4; const int UNITLIST_COL = 5; const int UPCCODE_COL = 6; const int UPCPACKSIZE_COL = 7; const int CRVID_COL = 8; var invItem = new InventoryItem(); using (var conn = new SqlCeConnection(dataSource)) { var cmd =

FormatMessage Fails with error code 317

别来无恙 提交于 2019-12-24 19:06:47
问题 When I executed the following code piece it fails with error code 317 . How can solve the issue? We are using Unicode Character Set for the project char* pszMessgeBuffer = NULL; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dwErrorId, 0, // Default language (LPTSTR) &pszMessgeBuffer, 0, NULL ) 回答1: Using the error code lookup tool from Visual Studio, 317 is described as The system cannot find message text for message number 0x

C# Compact-Framework friendly command line parser

陌路散爱 提交于 2019-12-24 18:38:26
问题 I read this question: Command Line Parser for .NET. I thought that was what I was looking for, but the library Command Line Parser Library is not Compact framework friendly... I REALLY don't want to write a CL parser and I have been drifting away from the real purpose of my little app because of this unfortunate trial. Does someone know of a library that fits the compact-framework? (preferably with simplicity and functionality like the one mentioned above) Does not matter whether version 2 or

Triggering an event in c# from c++ and declaring LPCWSTR

前提是你 提交于 2019-12-24 13:07:17
问题 I've been working on a project using C# on a WinCE7 device and I can't seem to be able to figure out how to use an API.dll i've been provided with. The API is used to control the gpio and contains interrupt functions for the input. The documentation I have for the api is very limited and I do not have access to the code itself. I've managed to get everything working using a polling mechanism but i can't seem to set up the interrupt. I've read a lot of articles on msdn and codeproject and

How can I detect suspend on Windows Mobile?

走远了吗. 提交于 2019-12-24 11:52:29
问题 We are seeing some occasional data loss with our application on Windows Mobile, and we suspect that some buffered data is not being flushed to disk when the device is suspending. We would like to manually flush data to the disk when the device is about to suspend. On Windows, we do this by catching the WM_POWERBROADCAST message, but this message is not available on Windows Mobile. I found a two-year-old quote on a message board that said: You need to realize that you are *not* guaranteed that

How can I detect suspend on Windows Mobile?

笑着哭i 提交于 2019-12-24 11:48:09
问题 We are seeing some occasional data loss with our application on Windows Mobile, and we suspect that some buffered data is not being flushed to disk when the device is suspending. We would like to manually flush data to the disk when the device is about to suspend. On Windows, we do this by catching the WM_POWERBROADCAST message, but this message is not available on Windows Mobile. I found a two-year-old quote on a message board that said: You need to realize that you are *not* guaranteed that

DeviceIoControl (IOCTL_NDISUIO_OPEN_DEVICE) is failed in WINCE7 C#.net

柔情痞子 提交于 2019-12-24 08:37:01
问题 I am working on WIN CE platform, developing windows forms in C#.Net. Successfully created handle for NDISUIO ("UIO1:"). Check the API: string AUB_NAME = "PCI\\ManiXX1"; byte[] toBytes = Encoding.ASCII.GetBytes(AUB_NAME); int IOCTL_NDIS_QUERY = new int(); IOCTL_NDIS_QUERY = IOCTL_NDISUIO_OPEN_DEVICE; IoctlResult = DeviceIoControl( hFileHandle, IOCTL_NDIS_QUERY, toBytes, (int)(11 * sizeof(UInt16)),//It should be 11 or 22 bytes? null, 0, ref dwReturnedBytes, 0); The above syntax is corresponding