Recent

Author Topic: wince 6.0 with i386 cpu  (Read 8594 times)

pcler

  • New Member
  • *
  • Posts: 13
wince 6.0 with i386 cpu
« 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
 
« Last Edit: March 30, 2014, 05:30:02 pm by pcler »

bambamns

  • Full Member
  • ***
  • Posts: 223
Re: wince 6.0 with i386 cpu
« Reply #1 on: January 14, 2014, 06:46:27 pm »
Lazarus 1.8.4 + FPC 2.6.4 x86 (rebuild) and Lazarus 2.0, Windows 7 x64, unless otherwise specified

pcler

  • New Member
  • *
  • Posts: 13
Re: wince 6.0 with i386 cpu
« Reply #2 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.


pcler

  • New Member
  • *
  • Posts: 13
Re: wince 6.0 with i386 cpu
« Reply #3 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?


bambamns

  • Full Member
  • ***
  • Posts: 223
Re: wince 6.0 with i386 cpu
« Reply #4 on: March 30, 2014, 10:40:54 pm »
  • Did you tried to use latest Lazarus 1.2 ?
  • Did you tried to use upx to compress exe ?
Lazarus 1.8.4 + FPC 2.6.4 x86 (rebuild) and Lazarus 2.0, Windows 7 x64, unless otherwise specified

pcler

  • New Member
  • *
  • Posts: 13
Re: wince 6.0 with i386 cpu
« Reply #5 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.

bambamns

  • Full Member
  • ***
  • Posts: 223
Re: wince 6.0 with i386 cpu
« Reply #6 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.
Lazarus 1.8.4 + FPC 2.6.4 x86 (rebuild) and Lazarus 2.0, Windows 7 x64, unless otherwise specified

 

TinyPortal © 2005-2018