Lazarus
Programming => Operating Systems => Windows CE => Topic started 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
-
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)
-
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.
-
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?
-
- Did you tried to use latest Lazarus 1.2 ?
- Did you tried to use upx to compress exe ?
-
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.
-
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.