windows-ce

Windows CE 6.0 and runtime link to Debug DLL /MDd

僤鯓⒐⒋嵵緔 提交于 2019-12-02 08:52:06
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". Seems that the C++ STD shared lib in debug version is not present on the target platform but the

Sharing GDI handles between processes in Windows CE 6.0

白昼怎懂夜的黑 提交于 2019-12-02 07:48:21
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? If not, is there a safe/valid way to duplicate the handle, ala DuplicateHandle for Kernel handles. The

How do I use HtmlDocument in CF3.5

假如想象 提交于 2019-12-02 07:24:47
I'm working on a Device that runs on windows CE and i need to automate a login process. I was able to achieve this in a Forms Application using the code below but it doesn't seem like I can use the same process on the smart device. Is there a way to do the same thing while working in CE? string butts = webBrowser1.Url.AbsoluteUri; HtmlDocument doc = webBrowser1.Document; HtmlElement userValue = doc.GetElementById("username"); userValue.SetAttribute("value", "user"); HtmlElement passValue = doc.GetElementById("password"); passValue.SetAttribute("value", "pass"); HtmlElement subButton = doc

“Can't find PInvoke DLL 'dbnetlib.dll'.” error in Smart Device Application

*爱你&永不变心* 提交于 2019-12-02 05:36:17
问题 I am creating a program in Visual Studio Pro 2008, and I am trying to access a SQL database from my program. The device that is running the program is running on Windows CE, and it is a bar code scanner. When I run the code and try to establish a connection to the database, I get thrown a MissingMethodExeption which says: Can't find PInvoke DLL 'dbnetlib.dll'. From reseraching online, I found out that you need to instal the sql.ppc.we5.armv4i.cab file, however my device isn't installing it

Identify who invokes Event Handler

ε祈祈猫儿з 提交于 2019-12-02 04:44:50
I have my app with my labels written to centralize when its text was modified. To make that I invoke a method through an EventHandler. I want to use same method to each one of my labels, but I don´t know how to identify in the method which label invoke it. If I have a code like this: lbl_TextChanged(object sender, EventArgs e) { ..code.. label1.Location = new Point("label's location"); ..more code.. } and I invoke again that method from another label, how could I modify that code in order to know which label invoke it? SOLUTION Thanks for the help, This is the first time I tried to make

Portable Device Detection

☆樱花仙子☆ 提交于 2019-12-02 04:03:51
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 Portable Devices): Public Class Form1 Private WM_DEVICECHANGE As Integer = &H219 Public Enum WM

Why does the handheld device ignore the “FileSyncPath” Registry key's value?

∥☆過路亽.° 提交于 2019-12-02 03:49:16
问题 We don't want file syncing between our handheld device and the PC. The handheld device puts certain (SQL CE database) files in the \My Documents folder on the handheld. These are, in particular, the files we don't want synced to the PC. I first added "sdf" (and "SDF" just to be sure) to the "ExcludeExts" registry key. That didn't help. I then changed the "FileSyncPath" and "NoSubfolderIn" registry keys from the "My Documents" folder to the "profiles" folder: private void UpdateRegistry() {

“Can't find PInvoke DLL 'dbnetlib.dll'.” error in Smart Device Application

偶尔善良 提交于 2019-12-02 01:42:06
I am creating a program in Visual Studio Pro 2008, and I am trying to access a SQL database from my program. The device that is running the program is running on Windows CE, and it is a bar code scanner. When I run the code and try to establish a connection to the database, I get thrown a MissingMethodExeption which says: Can't find PInvoke DLL 'dbnetlib.dll'. From reseraching online, I found out that you need to instal the sql.ppc.we5.armv4i.cab file, however my device isn't installing it (One of my problems). Here is the code I am using to establish a connection with my SQL database. string

Why does the handheld device ignore the “FileSyncPath” Registry key's value?

寵の児 提交于 2019-12-02 00:24:48
We don't want file syncing between our handheld device and the PC. The handheld device puts certain (SQL CE database) files in the \My Documents folder on the handheld. These are, in particular, the files we don't want synced to the PC. I first added "sdf" (and "SDF" just to be sure) to the "ExcludeExts" registry key. That didn't help. I then changed the "FileSyncPath" and "NoSubfolderIn" registry keys from the "My Documents" folder to the "profiles" folder: private void UpdateRegistry() { RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows CE Services"); if (key

How To Set useUnsafeHeaderParsing For .NET Compact Framework

随声附和 提交于 2019-12-01 21:52:43
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, the System.Net.Configuration assembly is not included in the Compact Framework. Is there a similar