Lazarus

Programming => Operating Systems => Windows CE => Topic started by: pcler on January 13, 2014, 06:35:29 pm

Title: wince 6.0 with i386 cpu
Post by: pcler on January 13, 2014, 06:35:29 pm
hello,

i have a small application for wince (arm-cpu) which works fine.
Now i want to start these application on wince with i386-cpu.
I build the compiler for i386-wince with help of site http://wiki.freepascal.org/i386-wince
and recompile the application.

When i test the application on the device emulator with wince 5.0 (i386) it also works fine.
Now i test it on an device with wince 6.0 (i386) but it doesn't work.
It seem the app starts and terminate directly without a message.

Has someone a idea, how i can find out the reason?

I use lazarus 1.0.8, fpc 2.6.2, windows xp 

thanks
pcler
 
Title: Re: wince 6.0 with i386 cpu
Post by: bambamns on January 14, 2014, 06:46:27 pm
Did you tried to apply http://forum.lazarus.freepascal.org/index.php?topic=7668.0 (http://forum.lazarus.freepascal.org/index.php?topic=7668.0)
Title: Re: wince 6.0 with i386 cpu
Post by: pcler on January 16, 2014, 08:18:11 pm
Now i apply these switches, but no success.

I build now a app with one Form and one Button, it works fine on WinCE 5.0 device
and on the Emulator 5.0, but not on the device with WinCE6.0

Is it possible to debug the application on the device with WinCE 6.0?

Or is there an Emulator with WinCE 6.0, maybe it's a problem with the real device.

Title: Re: wince 6.0 with i386 cpu
Post by: pcler on March 30, 2014, 05:35:50 pm
now i find the reason, why the app didn't start.

The aygshell.dll is on the device, but 3 functions are missing

The functions are SHCreateMenuBar, SHFindMenuBar, SHRecognizeGesture

Is there a solution for this problem?

Title: Re: wince 6.0 with i386 cpu
Post by: bambamns on March 30, 2014, 10:40:54 pm
Title: Re: wince 6.0 with i386 cpu
Post by: pcler on March 31, 2014, 05:49:56 pm
1. no I didn't try V1.2
2. the functions from aygshell.dll are used in the WinCE-LCL, so I think I have no success with compress

My solution
I removed the function calls in WinCe-LCL, and my Test-App works!
It looks like, they are not necessary for desktop - applications.
Now I will test my App, when it also works fine, I will post the changes in the WinCE-LCL.
Title: Re: wince 6.0 with i386 cpu
Post by: bambamns on April 01, 2014, 05:39:51 am
Interesting  8)

SHCreateMenuBar
This function creates a menu or softkey bar, as appropriate, to be associated with a specified window.

SHFindMenuBar
This function can be used to get a handle to a menu bar window created with SHCreateMenuBar.

SHRecognizeGesture
This function is used to recognize the stylus tap-and-hold gesture and the Action button press-and-hold gesture.