Windows CE 4.2 Application on CE 5.0 and CE 6.0

windows ce


  • 1. native exception 0x00000057
    Once I deploy a simple c# application on my CE6.0 device, I get a native exception error with exception code 0x00000057. The exception address is given as 0x4002d474. I am getting the exception as soon as I load a form. The load form method is given below. private void Form1_Load_1(object sender, EventArgs e) { IntPtr hdrv = CreateFile("LDM1:", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, null, OPEN_EXISTING, 1, null); } The file name (driver) exist. Please help me. What is the meaning of exception code. How can I trace the exception from the given exception address. Thanks.
  • 2. catch system interrupt from application
    I am using a RFID card reader with wincE 6.0 device. The card reader is connected to the external interrupt pins of the processor. Once I swipe any card, I am able to get the card number from the device, printed through RETAILMSG. I need to write a sample application code which continuously tracks the interrupt pins and print the card number on any message box once the card is swiped. In the driver code, I am creating a thread, which ckecks for the interrupt.
  • 3. WinCE device to enumerate and act as a HID device on a usb bus.
    Hi, I'm trying to develop an application whereas it will reside on a WinCE embedded system and it communicate to a Windows host via usb. That communication is needed to be via the HID mechanism since I do not want to go into driver development/signing/etc on the Windows host side. What I've seen so far is \WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\HID but this is for a WinCE system to act as a host and access another slave device over its usb port. Also I've seen \WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\COMPOSITEFN but I cannot see how and if that can apply to what I need. Is there any working example (any at all) that I can use as a reference for a WinCE system to act as a HID device on a usb bus? Christos

Windows CE 4.2 Application on CE 5.0 and CE 6.0

Postby Wrecked » Fri, 20 Apr 2007 17:31:26 GMT


I have an application written in C# using VS2005 targeting windows CE
4.2 Pocket PC phones. The application also uses some low level system
calls to handle SMSs and to do some raw read and writes on the SD
cards. Who difficult will it be to deploy the application on to a
Windows CE 5.0 and 6.0 device. Do the form factors and the system APIs
change significantly?


Re: Windows CE 4.2 Application on CE 5.0 and CE 6.0

Postby Paul G. Tobey [eMVP] » Sat, 21 Apr 2007 00:52:54 GMT

I'm afraid that you're all over the place.  What version of the Compact 
Framework are you targeting on your existing PocketPC 2003 devices?  If it's 
2.0, you're in pretty good shape.  If it's 1.0, you're probably calling out 
to a lot of native code APIs and there's a pretty good chance that those 
APIs will not exist on Windows CE 5.0 and 6.0 devices.  Remember, also, that 
Windows Mobile is not equal to Windows CE.  Windows Mobile devices run 
Windows CE, but that does not mean that every API on Windows Mobile is 
available on Windows CE generic.  If you mean "Windows Mobile 5" and 
"Windows Mobile 6", rather than Windows CE 5.0 and 6.0, then you should be 

Paul T.

Re: Windows CE 4.2 Application on CE 5.0 and CE 6.0

Postby Wrecked » Sat, 21 Apr 2007 13:31:32 GMT

Hi Paul,

Thanks for your reply and sorry for not being specific.

My current application targets Pocket PC 2003 devices. I have
used .NET compact framework 2.0 for the application.

I intend to deploy this application on "Windows Mobile 5" and "Windows
Mobile 6". Further more i have used this dll - Mapirull.dll to catch
incoming SMSs. Now is this thing still available on Mobile 5 and 6 or
has it changed?

Thanks in advance,

Re: Windows CE 4.2 Application on CE 5.0 and CE 6.0

Postby Paul G. Tobey [eMVP] » Sun, 22 Apr 2007 00:16:42 GMT

I'm not expert on what that DLL is about, but if it's built into the 
PPC2003, yes, that should all be the same.  I think that there are WM5 
classes in .NET CF 2.0 that might make this easier, though, so you'll want 
to make sure, if you *only* want the code to run on WM5/WM6, that you aren't 
doing things the "old way".

Paul T.

Re: Windows CE 4.2 Application on CE 5.0 and CE 6.0

Postby Wrecked » Tue, 24 Apr 2007 12:26:37 GMT

Thanks Paul

On Apr 20, 8:16 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT

Similar Threads:

1.Video Performance in Win CE 4.2 vs CE 5.0 & 6.0


I'm trying to play a mpg file with Windows Media Player in an ARM
platform. I don't have any problem playing it in Win CE 4.2, but in
any newer version of WinCE it's not fluently.

What are differences between CE 4.2 and 5&6 in video reproduction?

I previously posted this problem but with a lot of information, but I
think it can be confusing (and nobody reply me :( )

I'll be waiting for any answer/comments/anything :P

Thank you,

2.Migrating Windows CE.NET 4.2 to CE 5.0 on OMAP1510 platform

Hi All,

I am migrating Windows CE.NET 4.2 to CE 5.0 on OMAP1510 platform.
The BSP is working fine with CE.NET 4.2.  The same BSP we built it in
CE 5.0 and downloaded into target device but image is not getting
displayed.  We debugged it and found that CE Core schedulerInit is
failing, means that MDCreateThread is executing but after that no

MDCreateThread(pCurThread, pStack, pCurProc->e32.e32_stackmax,
(LPVOID)SystemStartupFunc, 0, TH_KMODE, 0);

RETAILMSG(1,(L"Sched: MDCreateThread is done\r\n")); //removable

what could be the problem? Any suggestion is appreciated..

Thanks in Advance

3.CE 4.2 and CE 5.0 devices hang if using shared virtual memory during active IO

In our application we use shared virtual memory a lot via custom operator 
new/delete. It works OK and allows us to use all available physical memory 
if needed (so we are not limited to 32 MB).

But if the cpu load is high and we actively use RS232 port and also write to 
the flash card then the devices just hang in several minutes.
It was tested on our own platforms and on HP iPAQs. Application hangs under 
debugger and ActiveSync looses connection.

So it can be either problem in our memory allocation or really problem in 
hardware or OS. What could it really be?

4.CE 5.0 Profession/CE.Net 4.2 and Mobile 5

I have two types of handheld devices that I would like to write an app for 
(preferably a single app for both). One is running CE.5.0 
Professional/ 4.2, the other is running Mobile 5.

I am experienced in 2005 but I have never developed for a mobile 
device before. The application is fairly simple. Some menus, getting some 
user input and then calling a stored procedure in SQL Server 2005 (or I 
could do web services if that is better). In some cases I will query data 
and show a list.

I have been reading up and I get confused on what is possible. Can I count 
that both of the above have compact 2.0 framework? Does CE.Net 4.2 come with 
compact framework or does that need to be installed?

These two devices are very similar (same screen resolution for example).

The vendors websites are pretty vague so I might need to contact them with 
further questions but I don't know what to ask.

So, my questions are:
    What needs to be in place/what should I check on that I could tell if 
these two devices could run the same app.
    Can I / should I call SQL Server directly from the device or would web 
services be better/easier way to develop.


Bruce Loehle-Conger 

5.Device Driver Not Working on CE 5.0 from CE 4.2

After converting from CE 4.2 to CE 5.0 my device would show "Unknown
card in Socket 1".  Checking the WEB and PlatformBuilder 5 it say CE
5.0 it should be able to use legacy device drivers.  Is this true or do
I have to make some additional entries in the registry or device driver
to get it to work?  Here is the registry settings used:


I did find if I add another registry entry under the
PCCARD\PCMCIA\TEMPLATE that I could get the card to be detected.  Do
you have to implement PNP in CE 5.0 to get your device drivers to worK?


My MRK_INIT function gets called with the new registry entries but I
never receive a CE_CARD_INSERTION event from my PCMCIA callback
function that I use.  I have read conflicting stories that the
CE_CARD_NOTIFICATION event was removed.  Is this true and how do you
work around this.  Is there documentation for CE 5.0 that explains
device driver registry entries better than PlatformBuilder?

Do you need to use the ActivateDeviceEx function to make device drivers

6. Serial drivers: CE 5.0 vs CE 4.2

7. CE 4.2 bluetooth hotfix (KB 892510) not present in CE 5.0

8. Building an image for CE 5.0 using CE 4.2

Return to windows ce


Who is online

Users browsing this forum: No registered users and 31 guest