windows-ce

Detecting 'Network Cable Unplugged' in the Compact Framework

不羁的心 提交于 2019-12-31 17:14:18
问题 I've been through all of the Stack Overflow answers search comes up with, and neither Google or Bing are showing me any love. I need to know when a network cable has been connected or disconnected on a Windows CE device, preferrably, from a Compact Framework application. 回答1: I realize I'm answering my own question here, but it was actually a question asked of via email, and I actually spent quite a while finding the answer, so I'm posting it here. So the general answer for how this is

Getting the device's CPU utilization and free RAM on WinCE in C#

一世执手 提交于 2019-12-31 02:56:05
问题 I'm looking for alternative ways of obtaining the total CPU utilization percentage and the amount of free RAM on the device in C#. There is an extremely easy solution described here: http://zamov.online.fr/EXHTML/CSharp/CSharp_927308.html However, the PerformanceCounter class is not included in the .NET Compact Framework 3.5. Are there other ways? Thanks :) 回答1: Free RAM is fairly easy - though you have both Physical and Virtual to contend with - and both are important. You P/Invoke

How To Set useUnsafeHeaderParsing For .NET Compact Framework

非 Y 不嫁゛ 提交于 2019-12-31 02:26:27
问题 In my Windows CE 6.0 app, I am communicating with a proprietary web server device that is returning bad header information (more specifically, it's returning NO header information). I believe this lack of header information is the reason why my HttpWebRequest methods are not working properly. I recall that the .NET "regular" Framework allows for us to programmatically configure the System.Net.Configuration assembly to allow for invalid headers (useUnsafeHeaderParsing). Unfortunately, for me,

Windows CE 5.0 emulator needed

大兔子大兔子 提交于 2019-12-30 06:45:34
问题 I need an emulator for Windows CE 5.0 to test an embedded device (not PDA or smartphone) application that I am developing. This is what I have already tried: Visual Studio 2008 Pro includes an emulator. Unfortunately, it does not include a Windows CE image (only Windows Mobile and Smartphone). Yes, there is a difference, see the screenshots here. Windows CE includes a "start button", windows that can be minimized, moved around etc. There is a Windows CE Device Emulator available from

Using boost in embedded system with memory limitation

六眼飞鱼酱① 提交于 2019-12-30 06:08:20
问题 We are using c++ to develop an application that runs in Windows CE 4 on an embedded system. One of our constraint is that all the memory used by the application shall be allocated during startup only . We wrote a lot of containers and algorithms that are using only preallocated memory instead of allocating new one. Do you think it is possible for us to use the boost libraries instead of our own containers in these conditions? Any comments and/or advice are welcomed! Thanks a lot, Nic 回答1: You

Using boost in embedded system with memory limitation

吃可爱长大的小学妹 提交于 2019-12-30 06:08:05
问题 We are using c++ to develop an application that runs in Windows CE 4 on an embedded system. One of our constraint is that all the memory used by the application shall be allocated during startup only . We wrote a lot of containers and algorithms that are using only preallocated memory instead of allocating new one. Do you think it is possible for us to use the boost libraries instead of our own containers in these conditions? Any comments and/or advice are welcomed! Thanks a lot, Nic 回答1: You

How can I measure the energy consumption of my application on Windows Mobile and Windows CE?

纵饮孤独 提交于 2019-12-29 08:21:29
问题 I want to measure the energy consumption of my own application (which I can modify) 3rd party applications (which I can't modify) on Windows CE 5.0 Windows Mobile 5/6 Is there some kind of API for this? If not, can I measure other values which I can use to estimate the energy consumption? I don't need an exact value like 20 mAh (although that would be nice) A relative value would suffice, like: "Starting from 100% to 0% charge status, around 20% of the fully charged battery was used by this

Windows CE vs Windows Mobile

风流意气都作罢 提交于 2019-12-29 06:51:09
问题 I often see these terms: Windows CE Windows Mobile Pocket PC Windows Mobile Smart Phone I know the difference between the second 2, but I am confused on the first. I thought it was the name of the Mobile OS prior to Windows Mobile 5. But I am seeing it more often in current products. (Here is a current MS Form for developing on it. Here is a current product for creating them.) What is it and how does it relate to the Windows Mobile lines? 回答1: Windows CE is a modular OS. It is built with a

Is there a way to compare two .exes to see what differs between them?

那年仲夏 提交于 2019-12-25 12:15:52
问题 Is there a tool / process by which I can decompile two .exes (one of which runs on a handheld device, the other which doesn't) so that I can get a glimpse into what differs/what the problem may be? Of course, seeing that one has "00xA" where the other has "00xB" won't help me. I mean a way to see code that differs, or more likely, a compiled resource or config file difference, or some build option or so? I'm almost positive the problem has nothing to do with code per se (if/while/switch

Is there a way to compare two .exes to see what differs between them?

本小妞迷上赌 提交于 2019-12-25 12:15:20
问题 Is there a tool / process by which I can decompile two .exes (one of which runs on a handheld device, the other which doesn't) so that I can get a glimpse into what differs/what the problem may be? Of course, seeing that one has "00xA" where the other has "00xB" won't help me. I mean a way to see code that differs, or more likely, a compiled resource or config file difference, or some build option or so? I'm almost positive the problem has nothing to do with code per se (if/while/switch