Recent

Author Topic: Windows CE compact embedded 7 - HELP!!!!  (Read 19740 times)

izio70

  • Newbie
  • Posts: 5
Windows CE compact embedded 7 - HELP!!!!
« on: March 08, 2017, 09:42:21 am »
Hi there,
i need to develop a simple app for an old wince7 hardware.....i need to know if i can do with lazarus (i hate .net and vstudio).

I  follow this post, but it seems that the changes are incomplete or with errors:
http://forum.lazarus.freepascal.org/index.php/topic,31533.0.html

when i build app, unit WinceWSmenus get many errors.

I need help!!!!! :-X
anyone has solutions?

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #1 on: March 08, 2017, 10:01:12 am »
Have you tried to find aygshell.dll from a little older WinCE (or from internet) and put it in executable directory?
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

izio70

  • Newbie
  • Posts: 5
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #2 on: March 08, 2017, 10:17:31 am »
yes...

i find some aygshell.dll and i try...but "Access violation..." and quit...

the app is very simple: a form and one button.

Hardware is ARM  with Windows ce Compact embedded 7


avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #3 on: March 08, 2017, 07:05:48 pm »
i find some aygshell.dll and i try...but "Access violation..." and quit...
"Some" is not good enough. There are 18 versions here: http://hpcmonex.net/izemize/aygshells.zip. Try one by one until you find a good one. More info can be found here: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Missing_aygshell.dll
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

izio70

  • Newbie
  • Posts: 5
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #4 on: March 09, 2017, 12:51:13 am »
i try all...12,13 and 14 access violation...others dont works...i think the proble is arm binary....hardware cpu is armv7a and if i try to set in lazarus compiler i get error

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #5 on: March 09, 2017, 10:37:09 am »
Try to copy this fake aygshell.dll to Windows dir on your WinCE:
http://www.wincesoft.de/aygshell.dll

Read also:
http://web.archive.org/web/20071008220449/http://pages.ccapcable.com/lac/PPC_on_HPC.html

List of supported devices and some more very important info about GAPI (if used at all, which I doubt):
http://www.wincesoft.de/html/gapi_for_hpc_s.html
http://www.wincesoft.de/html/ppc_apps_on_hpc_s.html

You can check if some other dll is needed with this tool:
http://www.geocities.co.jp/SiliconValley-Cupertino/2039/ExecutabilityCheck.zip
« Last Edit: March 09, 2017, 10:42:50 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

izio70

  • Newbie
  • Posts: 5
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #6 on: March 09, 2017, 08:11:51 pm »
I have tried all of your suggestions. does not work.
thank you so much for helping me, if you have other ideas I do other tests.

Kelsey

  • Newbie
  • Posts: 2
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #7 on: April 26, 2017, 04:21:04 pm »
Make sure you have the following Project Options set:
Compiler Options -> Target OS -> WinCE
Compiler Options -> Target CPU family -> arm
Compiler Options -> Additions and Overrides -> Set "LCLWidgetType" -> Value "wince"
Then compile, if the exe is too large go back into Project Options, Create a Release build mode and select that.

As for running on the device, I found I needed to switch the following form properties:
Position = poScreenCenter
Visible = true
KeyPreview = true (if you plan on accepting key presses)

If you still can't get it to work, try copying and pasting the code and I'll take a look.

neopos

  • Newbie
  • Posts: 4
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #8 on: June 14, 2017, 11:06:45 am »
Any luck with this? Tried all the hints and suggestions shown but no luck.

I am using Lazarus 1.6 and lazarus-1.6.4-fpc-3.0.2-cross-arm-wince-win32. (on Windows 7 64 bit)

Tying to run a simple app on a Motorola MC3200 PDT with Windows CE7 using and ARM OMAP4 (Cortex A9) processor.
Getting EAccessViolation $00012708.

Previously running the same app on a Motorola MC3100 with Windows CE 6. No Problem.

Already spent a couple of days on this but no joy.
Any suggestions would be greatly appreciated.

mati66688

  • Newbie
  • Posts: 2
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #9 on: July 15, 2017, 04:39:36 pm »
Hi there!
I have some problem with lazarus and WinCE7... When I'm trying tu put exe at device I have error
"An unhandled exception occurred at $000126EC..." . App is just created project with changes like wince at LCLwidgetType and compiler ppcrossarm.exe
What else can I do to make it work? App work normaly on Wince 6 emulator :(

Testing Device: sumbol -MC92ND (Motorola)

neopos

  • Newbie
  • Posts: 4
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #10 on: July 17, 2017, 12:14:37 pm »
Any Luck??

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #11 on: July 17, 2017, 11:35:44 pm »
You might want to check out http://wiki.freepascal.org/KOL-CE and see if that works
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

chrgra

  • Jr. Member
  • **
  • Posts: 69
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #12 on: July 18, 2017, 12:24:54 am »
You could miss a dll....
Compare of Windows  sys directory

SonnyBoyXXl

  • Jr. Member
  • **
  • Posts: 57
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #13 on: November 09, 2017, 09:27:30 am »
Hi there, so here is a little description how to remove the dependencies of agyshell for WinCE systems:

in WinCEInt.pp remove the use of agyshell in the uses clauses

Code: Pascal  [Select][+][-]
  1. {$ifdef Win32}
  2.     win32compat,
  3.   {$else}
  4.     //aygshell,
  5.   {$endif}

Do the same in WinCEProc.pp and WinCEWSmenus.pp.

When you now compile you should get some errors. This is cause some record types and constants are declared in Agyshell.pp that are needed.

Copy the required declarations from aygshell to the unit files.
After that, still some compile errors while occure. this are the SH* functions of the aygshell. Comment them out. Most of the call seems to be useless anyway.
After this the compiliation should work without errors and the compiled program work without aygshell.dll.

Btw, using the LCL Forms worked with one form, creating a second form resulted in a continous poping up of the second form. I'm not sure if this a problem in the LCL framework or in the missing aygshell.
Using standard WIN-API everything is working well, also the creation of a second or third windows.

LacaK

  • Hero Member
  • *****
  • Posts: 691
Re: Windows CE compact embedded 7 - HELP!!!!
« Reply #14 on: April 04, 2019, 09:30:49 pm »
Tying to run a simple app on a Motorola MC3200 PDT with Windows CE7 using and ARM OMAP4 (Cortex A9) processor.
Getting EAccessViolation $00012708.

Previously running the same app on a Motorola MC3100 with Windows CE 6. No Problem.

I had same problem. Older device procesor and older WinCE has supported only ARMv5 architecture and supplied Win32->WinCE cross-compiler and packages were compiled for older CPU type.

I have solved it using FpcUpDeluxe utility, which helped me to build cross compiler and recompile units/packages.
In FpcUpDeluxe I have seted "Cross Build Options Override" (in Setup+) to "-Cparmv7A" (The Cortex-A9 cores implement the ARMv7-A architecture).
After that I was able sucessfully compile and run my application on WinCE 7.
« Last Edit: April 04, 2019, 09:35:24 pm by LacaK »

 

TinyPortal © 2005-2018