windows-ce

Partly crashing application? How can I catch uncatchable exceptions?

巧了我就是萌 提交于 2019-11-26 23:35:14
问题 I have a program written in C#, running on a Windows CE device (on Compact Framework). It processes minimal user actions (button clicks), uses serial port and TCP/IP communication. The problem is sometimes the software shuts down on its own. In the background the application (or parts of the application) seems to be still running (at least in one documented case it was) because it uses the serial port, so restarting the application doesn't help. I can't reproduce the problem since it happens

Changing row colors in the Compact Framework DataGrid

倾然丶 夕夏残阳落幕 提交于 2019-11-26 23:24:43
问题 How can I use non-default coloring in the DataGrid control in a Windows CE compact framework application? I need to color one row in color X and one row in color Y (alternating row colors basically). 回答1: You'll have to manually do custom drawing. Ilya on the CF team has a straightforward example of doing it on the team blog here. 来源: https://stackoverflow.com/questions/408113/changing-row-colors-in-the-compact-framework-datagrid

How do I get the file HANDLE from the fopen FILE structure?

房东的猫 提交于 2019-11-26 16:49:08
问题 The fopen function returns a pointer to a FILE structure, which should be considered an opaque value, without dealing with its content or meaning. On Windows, the C runtime is a wrapper of the Windows API, and the fopen function relies on the CreateFile function. The CreateFile function returns a HANDLE , which is used by other Windows API. Now, I need to use Windows API deep inside of a library that uses fopen and FILE* . So: is there a way to get the HANDLE from the FILE structure? As this

J2ME VS Android VS iPhone VS Symbian VS Windows CE [closed]

笑着哭i 提交于 2019-11-26 12:56:42
问题 I have very little idea about mobile platforms, though I am interested to program for them. Would you please compare J2ME VS Android VS iPhone VS Symbian VS Windows CE . I would like to know: which one is better which one should I choose and why if there is any VM technology to test the programs is there any IDE, debugging facilities? Personally, I would like to code for open source, but any suggestions are welcome. I have preliminary knowledge on Java. I would also like to know, if there is

How to Copy (and increment) Multiple Instances of a File Using Batch File

徘徊边缘 提交于 2019-11-26 10:03:49
问题 I need to create a batch file that copies a file and increments it upon placing it at the destination. Example. copy C:\\TEMP\\MyDoc.txt E:\\MyData\\ Essentially, I need this copy command to copy every time I start it (which it does now just fine). I would like it to increment the file name instead of overwrite it though. If I ran this three times or 100 times (never a certain number) I would like to see on the \"MyData\" folder: MyDoc.txt MyDoc(1).txt ... Or Copy (1) I\'m not really sure