windows-ce

web browser for Windows CE 5.0 - problem with installation

I've got a windows CE device without Internet Explorer installed. I need a browser to test WiFi connection but I cannot find anything. I cannot build the system, I have to use the current one. I've tried to run Opera, Skyfire and some other less known browsers but none of them works on my device. Opera doesn't support Windows CE (cab fi...

Detect KITL at runtime

In Windows CE it is a trivial thing to conditionally compile something if KITL is enabled: #if IMGNOKITL == 1 DoSomething(); #else DoSomethingElse(); #endif But I need to produce a user mode application that detects at runtime if KITL is enabled or not. It is possible? ...

Best way to validate a WinCE OS image (.bin) file?

We have a Windows CE 6.0 based product that allows for firmware upgrades through a web interface. I want to perform a sanity check on the new firmware image to be sure that it is valid. How should I perform the validation? I see in the BIOSLOADER code, there is support code for decoding a BIN file. I suppose I could massage that to per...

Pitfalls when switching to .NET for Windows CE?

I have been developing in .NET for quite some time now, but now I have customer who wants me to develop an application for them in .NET for Windows CE. I have done some embedded system programming in C before, but never in .NET. What tips or tricks would make my life easier when taking this assignment? What pitfalls should I watch ou...

CeSetUserNotificationEx with named event and CNT_TIME fails under services.exe

I have a service application, a simple dll running under services.exe. I can attach the VS debugger to services.exe, activate the service application dll and then single step it in the debugger without any problem. Now, I try to use CeSetUserNotificationEx to be notified at a certain time in the future. I use the CNT_TIME trigger type w...

.NET compact framework backward compatibility 3.5 and 2.0

Do I need to install .NET 2.0 on the device, where .NET 3.5 is installed? So far my application works on .NET 2.0 (which potentially should be faster) but the long term plan is to port it to .NET 3.5. I need to order devices and the OEM needs to know which version of .NET should be added to the Windows CE image (version 5.0). Shall I a...

GetDiskFreeSpaceEx in winCE 5.0 emulator?

Hi, I am trying to use GetDiskFreeSpaceEx in wince5.0 emulator. This is the following code I have written. ULARGE_INTEGER notused, totalBytes, freeBytes; GetDiskFreeSpaceEx(_T("\\Windows"),&notused,&totalBytes,&freeBytes); printf(" Error in disk %d ", GetLastError()); printf(" values = notused %d,totalBytes %d,freeBytes %d",notused,t...

Develop for WinCE with VS2010

I have a VS2003 WinForms app running on WinCE (running on proprietary hardware so a switch is out for now) and I'd like to know if I can upgrade it to VS2010 (or 2008). In doing so, I lose the option to deploy it to a WinCE emulator. Is this situation just broken, or do I have options. ...

XML web service on Windows CE

Is there a way to implement a XML web service on .NET Compact Framework. The problem is that it doesn't support generation of XML web services using ServiceContract/OperationContract/MessageContract attributes. Managed code preferred. ...

How to programmatically select all the text of a TextBox control (Compact .NET 2.0)

I want to select all the text of a System.Windows.Forms.TextBox() control in a GotFocus event, but all the examples I found make use of the .SelectionStart / .SelectionEnd properties of the control, and those aren't available in .NET 2.0 Framework. using System; using System.Collections.Generic; using System.ComponentModel; using Syste...

write file in network shared folder with UnauthorizedAccessException?

hi the win mobile 6 code tries to write files on network shared folder, but always gets UnauthorizedAccessException. I have checked permission and security setting on the folder and the code can read the file but just cant write to it. The code runs under administrator account which has full control over the folder and files. It is in vs...

Developing for mobile devices and desktop

Hi, I'm starting a new project. It will run on devices running Windows CE, Windows Mobile 6 and will also have a desktop version. The software will connect to some equipments through the serial port, using it's own protocol. Basically it will: connect to the equipment send and receive info read and write binary files These tasks wil...

Accesing WinCE ComboBox DroppedDown property (.NET CF 2.0)

I'm implementing custom behavior sub-classing the form controls, but I cannot manage to access the DroppedDown property of the ComboBox. Looking in the help, it's supposed to be supported in CF.NET 2.0: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using Syst...

Help me understand this C code

INT GetTree (HWND hWnd, HTREEITEM hItem, HKEY *pRoot, TCHAR *pszKey, INT nMax) { TV_ITEM tvi; TCHAR szName[256]; HTREEITEM hParent; HWND hwndTV = GetDlgItem (hWnd, ID_TREEV); memset (&tvi, 0, sizeof (tvi)); hParent = TreeView_GetParent (hwndTV, hItem); if (hParent) { // Get the parent ...

Implement Hardware Acceleration for Graphics in Silverlight for Windows Embedded

Does anyone have any sample code to how to use DDraw & OpenGL in wince? I have searched the net and I didn't find anything on how to implement hardware acceleration in wince using DDraw & OpenGL. Please guide me how to use OpenGL API in wince 6.0 r3 for implementing hardware acceleration. I want to know the steps regarding how to u...

Unable to set enviornment variable in platform builder win CE 6.0

Actually while building the Windows CE project getting the two errors: BUILD: [00:0000000015:ERRORE] C:\WINCE600\PLATFORM\ICOP_Vortex86_60CS\SRC\OAL\OALLIB\obj\x86\debug_objects.mac: create file failed. Error 3 BLDDEMO: There were errors building mytest I think it's comes, due to unset of environment variable. Facing probl...

how to copy conmanclient.exe and related files to the windows folder of device

I need to debug a winCE application over the ethernet using Visual Studio 2005. I have connected to the device over the ethernet and now need to run conmanclient2.exe and cmaccept.exe before I can start debugging. However, I don't know how to copy these files over the ethernet. Please guide me. Thankyou! ...

How to programmatically open the application menu in a .NET CF 2.0 application

I'm developing an C# / .NET CF 2.0 application: it's supposed to be used with the touchscreen deactivated, then, I'm looking for a way to programmatically open the application menu (not the Windows menu). Looking here I tried to adapt the code to the .NET CF 2 but it doesn't work (no error messages neither) public const int WM_SYSCOMM...

embedded dev. question - how to break free from a faulty serial port opening?

Under WindowsCE, C++ project, I'm trying to work with devices connected via both "real" serial ports and/or serial-to-usb wrappers ("virtual" serial ports); my problem is - when I try to open the port, if something goes wrong, the function never returns and the system goes into some non-responsive state and has to be eventually rebooted....

Getting started on a stream interface driver

I want to build a stream interface driver for testing purposes but I am completely lost. I don't know which IDE to use VS2008 or Platform Builder. Platform Builder is whopping 20GB to download :( Can anyone guide me on how i create the .dll file and include XXX_Open, XXX_Close, XXX_Write, XXX_Read in the dll file? Should i write the .dll...