windows-ce

Compact Framework - get all open forms

我只是一个虾纸丫 提交于 2019-12-04 19:38:12
I am making a Windows CE application in which the user can change the GUI language at runtime. I have implemented my own translation logic in the Load event of the form. Now, I would like to update all open forms when the user changes the language. Is there a way (in Compact Framework!!) to retrieve all open forms of the application? You can create a FormManager class that you use to instantiate all of your forms. This would give the manager the opportunity to track the lifespan of those forms by listening for their Close event, and to call methods on them en masse if they utilize a common

VS2005 and Windows CE 6.0 Debugging

依然范特西╮ 提交于 2019-12-04 15:36:37
Firstly, I'm running VS2005 SP1 and Windows 7 Ultimate. I'm trying to debug an application of mine on a device running Windows CE 6.0. I have done a lot of digging and it seems a large amount people have a similar difficulty but it's caused by a broad range problems and if there are any solutions, none of them have helped me so far. My problem is that I cannot target WinCE 6.0 when I debug. The only devices I am able to target are: Pocket PC 2003 Device Windows CE 5.0 Device Windows Mobile 5.0 Pocket PC Device When I attempt to simply target "windows ce 5.0 device" I get errors, for example:

How to debug a fatal error that happens after calling Application.Exit() in .NET CF 3.5 WinForms application for Windows CE 6?

断了今生、忘了曾经 提交于 2019-12-04 13:49:31
I am porting a .NET CF 1.0 WinForms application (for older versions of Windows CE) to .NET CF 3.5 (for Windows CE 6). The problem is that, a few seconds after Application.Exit() is called, I get a flash of a "fatal error" message box, which simply says something to the effect of "A fatal error has occurred and the application will terminate.". Since I'm using a Chinese version of Windows CE, the message is in Chinese and I'm not sure what the exact message is in English. Anyway, the error message then automatically disappears and the application fails to terminate and release resources

Remote desktop TO Windows CE … over USB? [closed]

末鹿安然 提交于 2019-12-04 13:35:40
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Is there any way to remote-desktop INTO a Windows CE device if all I have to work with on that device is a USB port? I'd like to be able to record the screen. ActiveSync supports ActiveSync Remote Display . And ActiveSync works via USB. See if your WinCE device supports ActiveSync. Otherwise, you could do something with VNC and a USB network adaptor, provided there were drivers for it on CE. This is

Error when opening designer on inherited form

戏子无情 提交于 2019-12-04 12:27:42
问题 I am having trouble opening an inherited form in a Windows CE application. This is a project that I am taking over from a ex-employee, but there is compiled versions running on some mobile devices so I would assume that it should be able to open. I have the correct VS version (2008) and have tried cleaning the solution and rebuilding the solution. When deploying the solution it works like a charm. As soon as I try to go into the designer of the inherited forms, I get the following error: To

Ignoring queued mouse events

守給你的承諾、 提交于 2019-12-04 11:04:44
问题 I have an application written in C# targeting .NET Compact Framework 3.5, running on Windows CE. From time to time, operations lasting for a second or so are being performed on the UI thread. I currently set the Cursor.Current property to indicate that the application is busy, but this does not prevent mouse events from eager users to queue up. This sometimes leads to unintended clicks. What is the best way to ignore queued mouse messages on the .NET Compact Framework platform? Sadly, the

Console application not closing

China☆狼群 提交于 2019-12-04 10:05:57
问题 I'm developing a console application that is supposed to run under WinCE 6.0 and WinCE 7.0 . I'm using C# , Compact Framework 2.0 for different compatibility reasons. My application is started by an external runtime called TwinCAT (from Beckhoff). Within this application, my teammate used a function block called nt_startProcess (documentation here) that is in charge of starting my application on demand. My problem - Two different behaviors depending on the OS : When started manually (without

What uri pattern do I need to communicate with my PC from my handheld device?

怎甘沉沦 提交于 2019-12-04 06:19:32
问题 As I was reminded here, I need to probably use "ppp_peer" to programmatically connect from my Compact Framework app to my Web API app running on my PC. I have tried this (replacing an IPAddress with "ppp_peer"): string uri = string.Format("http://ppp_peer:28642/api/FileTransfer/GetHHSetupUpdate?serialNum={0}&clientVersion={1}", serNum, clientVer); ...but I get, " NullReferenceException " in "Main" (prior to this I got "Unable to Connect to the Remote Server"). I have a breakpoint in the

No Signs of Fatal Exception when application crashes | NLog version 2 | Compact Framework 3.5

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 05:26:44
问题 I have a .Net Compact Framework 3.5 application that uses Nlog version 2.0 to log Info, Error and Fatal Exceptions. Most of the time the logging works as expected and logs fatal exceptions before crashing. But at times it is observed that application crashes without leaving any signs of an error/exception. Let me elaborate the scenario: The Application creates few threads, all the threads have try-catch block added at the beginning of their call stacks. And hence log fetal exceptions before

Is it possible to kill WaitForSingleObject(handle, INFINITE)?

本秂侑毒 提交于 2019-12-04 04:21:54
I am having problems closing an application that uses WaitForSingleObject() with an INFINITE timout. The full picture is this. I am doing the following to allow my application to handle the device wakeup event: Register the event with: CeRunAppAtEvent("\\\\.\\Notifications\\NamedEvents\\WakeupEvent", NOTIFICATION_EVENT_WAKEUP); Start a new thread to wait on: Thread waitForWakeThread = new Thread(new ThreadStart(WaitForWakeup)); waitForWakeThread.Start(); Then do the following in the target method: private void WaitForWakeup() { IntPtr handle = CreateEvent(IntPtr.Zero, 0, 0, "WakeupEvent");