windows-ce

To close or not to close connection in database

大憨熊 提交于 2019-12-01 15:58:14
I work with Windows-Mobile and Windows-CE using SqlCE and I dont know what better to do. To open connection when the program open, run any query's... update...delete database and close the connection after the program close? Or open connection run any query's..update...delete database and close the connection immediately? Nice. The answers are all over the place. Here's what I know from experience and interacting with the SQL Compact team: Closing the connection flushes the changes you've made, otherwise the engine waits for the flush period before doing it. It's a good idea to close the

Differences in Microsofts C++ STL for Windows CE?

耗尽温柔 提交于 2019-12-01 12:14:49
问题 anyone know of a complete list of the differences in Microsofts implementation of STL for Windows CE, compared to the full STL for desktop? I am using WinCE 6.0, with VS 2005. I am a bit suprised that they seem to have removed so many things; for GCC it is almost the same. Thanks! 回答1: according to Standard C++ Library Reference for Devices, the (only) differences are: New Functionality Stream support has been added to this version of the Standard C++ Library. Unsupported Functionality The

Specified argument was out of the range of valid values. Parameter name: size & Serial Port Communication

百般思念 提交于 2019-12-01 11:53:25
I need to create an application which requires communicating to an existent software using TCP/IP, where both mine and the other application will be using the port number specified below. private void frmScan_Load(object sender, EventArgs e) { clientSocket.Connect("100.100.100.30", 76545); } public void msg(string mesg) { textBox1.Text = textBox1.Text + Environment.NewLine + " >> " + mesg; } private void cmdSCANok_Click(object sender, EventArgs e) { msg("Client Started"); NetworkStream serverStream = clientSocket.GetStream(); byte[] outStream = Encoding.ASCII.GetBytes("PCK|SCAN|5025066840471")

problems with fread() always returning 1

非 Y 不嫁゛ 提交于 2019-12-01 07:07:57
问题 I have looked at similar questions, but mine is a bit different. I make sure to open file in binary mode and to check if error occurs while reading. File contents: message1, message2, 53467 program to read simple file: int bytesRead; FILE* CSV; CSV = fopen("\\Temp\\csv.txt", "rb"); char dataBuf[128]; while ( (bytesRead = fread(dataBuf, 1, sizeof(dataBuf), CSV) > 0) ) { if (ferror(CSV)) //handle error //do stuff with dataBuf contents } fread() is always returning 1. ferror is also not entered,

Force close Windows CE 5 app using C#

旧城冷巷雨未停 提交于 2019-12-01 06:43:32
问题 How do I go about force-closing an application on Windows CE 5.0, using C#? I've already tried Application.Exit() but this doesn't always kill all currently running threads. I'd normally use Environment.Exit() but this is not available in CF, unfortunately. 回答1: It depends on the version of the CF you're using. Application.Exit is the correct mechanism to exit the app, but your threads have to be handled as well. In CF 2.0 and 3.5, set the IsBackground property to true on all created threads

Visual Studio 2010 and WinCE 5.0

余生颓废 提交于 2019-12-01 06:04:53
Is it possible to use a platform builder 5.0 SDK in visual studio 2010 for a C++ project. I want to compile code for a specific ARM WinCE 5.0 environment and I have VS2010 at the moment. The Microsoft website recommends visual studio 2005. I'm currently downloading the VS2005 evaluation but I'm also a bit worried about installing this on a machine that already has vs2010 installed. Any advise would be greatly received. Shaihi Read this question: ETA on Smart Device Projects for Visual Studio 2010 In short, Visual Studio 2010 does not currently support Smart Device projects so you cannot do

Visual Studio 2010 and WinCE 5.0

扶醉桌前 提交于 2019-12-01 03:36:04
问题 Is it possible to use a platform builder 5.0 SDK in visual studio 2010 for a C++ project. I want to compile code for a specific ARM WinCE 5.0 environment and I have VS2010 at the moment. The Microsoft website recommends visual studio 2005. I'm currently downloading the VS2005 evaluation but I'm also a bit worried about installing this on a machine that already has vs2010 installed. Any advise would be greatly received. 回答1: Read this question: ETA on Smart Device Projects for Visual Studio

How can I run my Windows CE project from within Visual Studio (2003)?

◇◆丶佛笑我妖孽 提交于 2019-12-01 03:01:18
问题 I'm working on a legacy app that needs to be continued in VS 2003; I cannot effectively debug it, though, because when I try to run it, I get the following dialog: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Deploy Choose the device to target. If the .NET Compact Framework is not already on the selected device, it will be deployed along iwth your application. Pocket PC 2002 Emulator Pocket PC Device Windows CE .NET Device Windows CE .NET Emulator (Default) ~~~~~~~~~~~

Killing a WinCE device process from a desktop app

我是研究僧i 提交于 2019-12-01 01:20:25
I'm copying files from the desktop to a WinCE device (via the RAPI API ), and if the main WinCE program is running, I need to kill it, update and restart it again. So far, I manage to copy the files and start the main program with no problem, but I cannot found a way to terminate a process via RAPI (there is a CeCreateProcess function but no CeTerminateProcess or similar) Currently i'm spawning RapiProc.exe -k \MyDir\MyProcess.exe and it works, but I cannot find the way to do it via RAPI Any ideas? TIA RAPI doesn't provide a direct way to kill a process. You must create a custom RAPI DLL that

Debug .NET Compact Framework app locally (without emulator or device)

拥有回忆 提交于 2019-12-01 00:04:36
I am currently in the preparation phase for a new project that will be developed with .NET Compact Framework (2.0 or 3.5, we'll see) and will run on a custom Windows CE 6 hardware. There is, however, one thing I can't get to work: Debugging seems to be possible only with a physical device or with the emulator. But when I just start the app from explorer, it runs happily on my desktop (because, of course, the CF is installed on my development machine. So, the actual question is: How can I debug my .NET CF app on my desktop system with the app running on the desktop CF framework? Or is this not