windows-ce

How can I terminate a running process on a handheld device?

倖福魔咒の 提交于 2019-12-20 07:29:04
问题 I am no longer able to replace the old version of my exe on my handheld device (copied over from the dev machine). When I try to do so, I get: Cannot copy Platypus.exe The device has either stopped responding or has been disconnected. The device is still responding, otherwise; it is not disconnected. When I try to run Platypus.exe on it now, it just "hourglasses" forever (and a day). I have warmbooted the device, and it makes no difference. I'm trying to avoid having to cold-boot it, if at

Sharing GDI handles between processes in Windows CE 6.0

旧巷老猫 提交于 2019-12-20 06:36:57
问题 I know that GDI handles are unique and process specific in 'Big Windows' but do they work the same way in Windows CE 6.0? For example: I've got a font management service that several other services and applications will be using. This service has a list of valid fonts and configurations for printing and displaying; CreateFontIndirect() has been called on each of them. When one of these client applications requests a particular font (and configuration), can I return it the appropriate HFONT?

Windows CE 6.0 and runtime link to Debug DLL /MDd

て烟熏妆下的殇ゞ 提交于 2019-12-20 06:28:35
问题 I'm using Windows CE 6.0 R3 on an x86 PC. I've build the NK.bin and the SDK for the platform. But I've some problem to understand how can I build a console application with /MTd (Debug DLL). If I try to build this: // main.c with /MDd #include <stdio.h> int main(int argc, char* argv[]) { printf("Hello World\n"); return 0; } This work perfectly, but // main.cpp /MDd #include <iostream> int main(int argc, char* argv[]) { std::cout << "Hello World\n"; return 0; } build but the application "crash

Portable Device Detection

感情迁移 提交于 2019-12-20 05:14:32
问题 I need a functionality in my program (written in VB.NET) that detects whether the USB Portable Device (Windows CE 5.0) is inserted or removed. I have found a VB.NET code from the internet but it only works with USB Storage Devices... I only found codes and sample programs (written in C++) that does this USB Portable Device detection, but I can't understand the logic/program flow so I can't convert it to VB.NET Here are the VB.NET codes that detects USB Storage Devices (lacks detection for USB

Pocket PC: Draw control to bitmap

 ̄綄美尐妖づ 提交于 2019-12-20 05:09:31
问题 Using C#, I'm trying to draw an instance of a control, say a panel or button, to a bitmap in my Pocket PC application. .NET controls has the nifty DrawToBitmap function, but it does not exist in .NET Compact Framework. How would I go about painting a control to an image in a Pocket PC application? 回答1: DrawToBitmap in the full framework works by sending the WM_PRINT message to the control, along with the device context of a bitmap to print to. Windows CE doesn't include WM_PRINT , so this

To close or not to close connection in database

别说谁变了你拦得住时间么 提交于 2019-12-19 15:58:21
问题 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? 回答1: 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

wince 6 smart device Could not establish secure channel for SSL / TLS error

不打扰是莪最后的温柔 提交于 2019-12-18 09:17:46
问题 I have a web service which i need to access through https. We have a workbout pro 4 with win ce 6.0 running on it. When we were developing our app we had tested it through http. wihtout any problem. When we went live and needed access to https based server we have received the error stated on subject field under VS 2008 Smart Device Project. On the device we receive an error "could not display..." . We have tried to import the standard certificate issued by global si. We still have no success

How to programmatically install a font

拈花ヽ惹草 提交于 2019-12-17 20:52:41
问题 I would like to install a specific font on my program load and use that font in rendering text of the program. How can I programmatically install a font from .NET CF on WinCE 6. 回答1: This blog entry shows how to enumerate and add Fonts in Windows CE using native code. For managed code, this will work: internal class FontHelper { private delegate int EnumFontFamProc(IntPtr lpelf, IntPtr lpntm, uint FontType, IntPtr lParam); private List<string> m_fonts = new List<string>(); public FontHelper()

What is the best mechanism for communicating cross-process in Windows CE?

◇◆丶佛笑我妖孽 提交于 2019-12-17 20:29:59
问题 I need to broadcast an event that can be picked up by any application running on a Windows CE 5 device. Haven't done this before so i'd be interested in knowing what techniques people would suggest to see if there is anything i've not considered. All of the applications that need to receive this event are .NET Compact Framework based so "managed-only" solutions can be considered. 回答1: I swear I've answered this somewhere - here, newsgroups, blog, something - but I can't find it, so here it is

Developing .NET Compact Framework apps in Post-2008 Visual Studio?

放肆的年华 提交于 2019-12-17 08:53:32
问题 I want to develop a Compact Framework App for a Windows CE 6.0 target device. Can I do this with Visual Studio 2013? If this is not possible, what would be a development environment for .net compact framework? 回答1: I'm positive this question is a duplicate, but for the life of me I can't find the original so I'll re-answer here. Microsoft's support for Compact Framework development is not completely obvious or well documented. It's a mixed matrix of the target version of Windows CE, the