windows-ce

Windows CE deletes .NET CF on reset

I'm writing a C# application for a proprietary Windows CE 4.2 device (for which I don't have the specs or pretty much any other information. I've got access to the file system, and that is basically it.) I also can't get support from the original manufacturer. Now, I can install the .NET Compact framework just fine, and everything works...

Dynamic Memory Allocation Failure Recovery

I'm working on an embedded processor (400 MHz Intel PXA255 XScale), and I thought I saw one case where there wasn't enough memory to satisfy a 'new' operation. The program didn't crash, so I assumed other threads had freed their memory and it was just a transient thing. This is some pretty critical code, so exiting is not an option, and...

How do you access the high speed SRAM in ARM CPUs from user-mode code on WinCE?

When writing embedded ARM code, it's easy to access to the built-in zero wait state memory to accelerate your application. Windows CE doesn't expose this to user-mode applications, but there is probably a way to do it. The internal SRAM is usually used for the video buffer, but there's usually some left over. Anyone know how to do it?...

Smart pointers for Windows Mobile 6 SDK

I cannot get std::tr1::shared_ptr for my WinMobile project since the STL for WinCE is maintained by a different team at Microsoft :( aarrgh... Anyone worked with another thread-safe, reference counting smart pointers? I'm actually using yasper which seems to be good. Thank you very much. ...

How to detect leaks under WinCE C/C+ runtime library?

I know the possibilities of basic leak detection for Win32 using the crtdbg.h header, but this header is unavailable in the CE CRT library headers (i'm using the lastest SDK v6.1). Anyone knows how I can automatically detect leaks in a WinCE/ARMV4I configuration with VC 9.0? I don't want to override new/delete for my class hierarchy, I...

How to get the device name in C#?

How can I get my device name (using WinCE) in C# code ? It gives me only "WindowsCE" how can i get the type on name of the device ? (ex. symbol or datalogic or mio...) ...

Windows CE Emulator related error when using VS.NET 2005 and 2008

I have a situation where i need to debug a Windows CE application in both Vs.NET 2008 as well as VS.NET 2005. After i switch between the emulators in these 2 environments a few times, i get the error :- "A fatal error has occurred and debugging needs to be terminated. HRESULT=0x8013110e. Error code=0x0". Why should it happen only afte...

P/Invoking CreateToolhelp32Snapshot failing in Compact Framework

Hey, im doing a little app for my smart phone, using Windows Mobile 6. I'm trying to get all currently running processec, but method CreateToolhelp32Snapshot always returns -1. So now im stuck. I tried to get error with invoking GetLastError() method, but that method returns 0 value. Here is a snippet of my code. private const int TH32C...

Memory Management in WinCE C#

How can i manage program memory in C# code ? (in WinCE) ...

Fast DB work in WinCE

Hi everyone I work with DB (SqlCe) in WinCE (C#) After search and insert of 300 records, the terminal start to work very slow What can I do to make it faster? Can I have a little sample? Thanks for any help ...

Changing row colors in the Compact Framework DataGrid

How can I use non-default coloring in the DataGrid control in a Windows CE compact framework application? I need to color one row in color X and one row in color Y (alternating row colors basically). ...

In Windows CE .NET 4.2, why might SetTimeZoneInfo hang?

Our product contains a task-manager system that allows applications to run code in a DLL upon a scheduled interval, specify rules about whether a failure of the task should disable the related application, etc. Mostly it's used for data-upload, data-download, local database maintenance, etc. One of the functions used is to sync the devic...

How do I configure WinCE to use wildcard SSL certificates?

Our Windows CE 5.0 application has a problem with our wildcard SSL certificate (*.domain.com) - it won't accept it as valid. I understand that Windows Mobile 6.0 has support for wildcard certificates (earlier versions don't) and that is built on WinCE 5 which suggests it should be possible to change WinCE 5 to accept wildcard certificat...

Normal main to WinCE main

I'm porting an existing (mostly) cross-platform application to WinCE 4.2. The current entry point for the function is int main(int argc, char *argv[]){} I would like to keep this part as-is, and have the WinCE entry point simply call it. I believe something like the following should work: int WINAPI WinMain( HINSTANCE hInstance, ...

How to create a .bmp in WinCE

I have a camera that returns raw images that can easily be converted to a bitmap that can be saved to a file by the following C# method (that I did not write). From various sources, I have determined that the pictures have 8 bits per pixel, and may or may not be grayscale. private void rawImgToBmp(byte[] imgData, String fname) { ...

Progress bar for WinCe

hi evreyone is there any Progres-bar for WinCe ? than'k for any help ...

When debugging on WinCE, how can I set Visual Studio to always load symbol files it knows about?

I'm debugging a WinCE, C++ program in Visual Studio across an ActiveSync connection. Every time I start the process it fails to load symbol information. However, if I right click on the module and hit 'Load Symbols' it correctly locates the symbol information without any further prompting from me. Is there a way that I can set Visual ...

Compile a WinCE app as a PC app in VS2005

Hi, anyone knows a way how to compile a WinCE app as a PC app in VS2005. I want to change a standard MFC smart device app to an mfc windows app. ...

Why does Windows CE drop key events if you hog the UI thread

Now I appreciate the moral of the story is "don't hog the UI thread" but we tried to KISS by keeping things on the UI thread for as long as possible but I think we've just hit the tipping point and we're going to have to change our design. But anyway..... something I noticed on our device that doesn't happen on desktop: When you hog th...

open 2 database in wince

Is it posible to open more than 2 databases in WinCE ? I work with Sql CE 3.5. Can I get example for open 2 connections? ...