windows-ce

window CE5.0 application with C#

Deadly 提交于 2019-12-08 12:17:53
问题 I amm new to window CE application development. I am familiar with C# language. I have experience with web application development and have 0 knowledge on smart device application development. I have Visual Studio 2008 Professional installed, currently using MySql database. I need to develop an application on MC 70 Windows Mobile 5.0 platform, which allows to scan a QR code, display the information stored in the QR code and store those information to database via internet. From my research,

Serial number of the usb on windows Ce 6.0 in c#

好久不见. 提交于 2019-12-08 11:52:25
问题 I need to get the serial number of a usb stick connected to a windows ce 6.0 device. I tried with KernelIoControl and i get the serial number of the window ce 6.0 device but not the usb connected to it. private static string GetDeviceID() { // Initialize the output buffer to the size of a // Win32 DEVICE_ID structure. byte[] outbuff = new byte[20]; Int32 dwOutBytes; bool done = false; Int32 nBuffSize = outbuff.Length; // Set DEVICEID.dwSize to size of buffer. Some platforms look at // this

Minimal system requirements for .NET Compact Framework 3.5

廉价感情. 提交于 2019-12-08 10:42:51
问题 I have hardware with Microsoft Embedded Windows CE 4.1 (CE .NET) / CPU Intel XScale PXA250 / Memory 32 MB RAM/32 MB ROM. Is there possible to run .NET CF 3.5 on hardware this type? Or may be only .NET CF 2.0? 回答1: it seems that there is a version for Windows CE 4.2, it may work also on 4.1 because there are no major differences in the kernel between those two releases: http://support.microsoft.com/kb/947559 It's not granted that it could run on any Windows CE 4.2 device. The .NET CF requires

Using virtual com port on windows mobile

白昼怎懂夜的黑 提交于 2019-12-08 10:42:06
问题 I have a windows mobile device which is running windows CE 5.0. I want to now connect a hardware to the USB port and communicate with the hardware by configuring it as a virutal com port and writing/reading bytes to/from it. Do i have to write a virual com driver for the windows mobile device? Please note that the hardware device that is just a device which sends/receives bytes.. Can i simply use the SerialPort class of .net framework? How will i know the COM port to which the device is

How can I read a string from OpenNETCF.IO.Ports.SerialPort?

感情迁移 提交于 2019-12-08 07:53:07
问题 I write commands to a belt printer using OpenNETCF.IO.Ports.SerialPort this way: public static bool SendCommandToPrinter(string cmd) { bool success; // init'd to false by default try { SerialPort serialPort = new SerialPort(); serialPort.BaudRate = 19200; serialPort.Handshake = Handshake.XOnXOff; serialPort.Open(); serialPort.Write(cmd); serialPort.Close(); success = true; } catch // may not need a try/catch block, as success defaults to false { success = false; } return success; } ...now I

How to automate importing certificates on a Windows CE device?

感情迁移 提交于 2019-12-08 07:04:36
问题 I'd like to automate importing cert(s) on a Windows CE device. Pushing the certs down to the devices is not a problem, but once they are there I cannot determine how to import them without using the UI. (I'm currently using Avalanche Mobility Center) 回答1: Another way to push certificates onto windows mobile devices is to use Windows Mobile Device Provisioning. MSDN Provisioning Mobile Devices Article For examples of certificate provisioning, in any of the Windows Mobile SDK directories, there

How to “catch” unhandled Exceptions

江枫思渺然 提交于 2019-12-08 06:13:14
问题 We've developed a .NET 3.5 CF Application and we're experiencing some application crashes due to unhandled exceptions, thrown in some lib code. The application terminates and the standard application popup exception message box is shown. Is there a way to catch all unhandled exceptions? Or at least, catch the text from the message box. Most of our customers simply restart the device, so that we're not able to have a look on the exception message box. Any ideas? 回答1: Have you added an

64-bit Windows CE 5.0 Emulator

老子叫甜甜 提交于 2019-12-08 05:23:02
问题 When attempting to run the Windows CE 5.0 emulator on my 64-bit system, I get the following error: "Emulator for Windows CE is incompatible with the host operating system. Emulator for CE will not run on 64-bit host operating systems.64-bit host operating systems." How can I run the Windows CE 5.0 Emulator under 64-bit Windows 7 without resorting to a VM? 回答1: You can't. The old CE 5.0 emulator is an x86 emulator and must run on a 32-bit target. If you need to run on a 64-bit machine, use

Properly handling network timeouts on Windows CE

試著忘記壹切 提交于 2019-12-07 14:28:22
问题 I'm trying perform a relatively basic TCP socket send/receive operation on Windows CE using the .NET Compact Framework. I'm trying set the timeout value so that reads/writes on a slow connection timeout instead of blocking forever. On the full framework I'm able to simply set the ReceiveTimeout and SendTimeout properties on the Socket object. Unfortunately, setting these properties on the compact framework immediately results in a SocketException about using an unsupported socket option.

localization with .net compact framework

耗尽温柔 提交于 2019-12-07 13:27:21
问题 I'm developing an application for mobile devices (Windows CE 5.0, .NET compact framwork 2.0 pre-installed) using .NET compact framework 3.5 and MS Visual Studio 2008. I'm using the built-in option for creating localized forms. This works perfectly as long as I use the debugging function of Visual Studio with the mobile device connected to my desktop computer. In this case, Visual Studio deploys my application along with .NET compact framework 3.5. After disconnecting the mobile device and