Applications for Windows 7 Embedded Compact lazarus / 35-Windows CE ---------------------------------------------------------------------- SonnyBoyXXl · 2016-02-15 19:43 Hi there, since I have to do a project wit Windows 7 Embedded Compact (WinCE 7.0) and only found error descriptions on the www and I h.a.t.e to do programing in .NET I now figured out how to get applications compiled for CE7.0. Both native code without LCL and with LCL is running now, look at the screenshots. I will clean my code and then post it here, so that this can be included in a later official release of lazarus! greatings! FPC strikes once again ---------------------------------------------------------------------- SonnyBoyXXl · 2016-02-15 22:57 So what I have done: The most important thing is to remove the dependency to aygshell.dll. modify the unit WinCEWSMenus this way: Add a definition Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$DEFINE WINCE7} comment the reference to aygshell out Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$ifndef win32}{aygshell,}{$endif} in the procedure CeSetMenu make the following change: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$IFNDEF WINCE7}  mbi: SHMENUBARINFO;  {$ENDIF}and out comment the whole procedure: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i begin(*  {$ifdef VerboseWinCEMenu}...//DrawMenuBar(wnd);*)end;  In the file wincecallback.inc change as follow: Add again a definition of Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   {$DEFINE WINCE7}  modify around line 207 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$ifndef win32}  {$IFNDEF WINCE7}  Info: SHRGINFO; // used by SHRecognizeGesture in WM_LBUTTONDOWN  {$endif}  {$endif} also around line 257 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if PopupMenu <> nil then //processing popup menu    begin      WindowInfo^.PopupMenu := nil;      // LOWORD(WParam) = MENUITEM_ID    Result := PopupMenu.FindItem(LOWORD(WParam), fkCommand);    end;    {$ifndef win32}    {$ifndef WinCE7}    if Result = nil then //if Result is still nil, process main menu    begin      MainMenuHandle := SHFindMenuBar(Window); and Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i WM_LBUTTONDOWN:    begin      {$ifndef win32}      {$IFNDEF WINCE7}    // Gesture recognition process to enable popup menus.      if (lWinControl.PopupMenu <> nil) then      begin close the $IFNDEF WINCE7 with Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$endif} whre the win32 ifndef ends.... cause Win7Embedded Compact is similar to Win32  That's it. I don't know if all is perfect, but it work's at the moment. Also Graphic32 is running. I will continue testing.... pls inform me if you have additional informations! good luck and happy testing ---------------------------------------------------------------------- rus.punk · 2016-03-12 08:02 Hello , could you release a patch for the conversion of the source code needed to build a windows CE 7.0 and back , and I use lazarus and code Typhon. In advance thank you ! ---------------------------------------------------------------------- vincococka · 2016-03-12 09:41 Nice work Sonny.. KUDOZ! ---------------------------------------------------------------------- rus.punk · 2016-03-12 16:47 I need help to build a Windows CE 7.0 !!! ---------------------------------------------------------------------- GutoGT · 2016-03-16 19:29 what version of Lazarus ? please post the files. thank you ---------------------------------------------------------------------- fduron · 2016-03-16 21:06 Quote from: GutoGT on March 16, 2016, 08:29:36 pmwhat version of Lazarus ? please post the files. thank you I try it with Lazarus 1.6 - FPC 3.0.0 - cross-arm-wince-win32, does not work ---------------------------------------------------------------------- rus.punk · 2016-03-20 15:11 I use codetyphon 5.60 ---------------------------------------------------------------------- GutoGT · 2016-03-29 17:36 Quote from: SonnyBoyXXl on February 15, 2016, 08:43:12 pmHi there, since I have to do a project wit Windows 7 Embedded Compact (WinCE 7.0) and only found error descriptions on the www and I h.a.t.e to do programing in .NET I now figured out how to get applications compiled for CE7.0. Both native code without LCL and with LCL is running now, look at the screenshots. I will clean my code and then post it here, so that this can be included in a later official release of lazarus! greatings! FPC strikes once again I could not run making these changes. put your files please ---------------------------------------------------------------------- rus.punk · 2016-04-03 19:12 Put then please copy the necessary files ---------------------------------------------------------------------- sergant · 2016-07-22 11:32 Hello! Lazarus 1.6, FRC 3.0.0.  {$ifndef win32}{aygshell,}{$endif} not compiled: "Identifier not found: SHFindMenuBar"  {$ifndef win32}aygshell,{$endif} successfullyюю Thank you. ---------------------------------------------------------------------- felipemdc · 2016-08-02 04:38 Why simply not copy the DLL aygshell to the same folder as your executable? This library doesn't work in Windows CE 7? ---------------------------------------------------------------------- beppe_1964 · 2016-08-17 15:57 which version of lazarus have you modified ? 1.6 or 1.44 ? i tried to modify 1.6 + fpc 3.0.0 but not working thanks Beppe ---------------------------------------------------------------------- izio70 · 2017-03-09 19:10 modify 1.6 + fpc 3.0.0 not working PLS HELP!!! ---------------------------------------------------------------------- neopos · 2017-06-14 09:09 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 · 2017-07-15 18:36 "begin (*   {$ifdef VerboseWinCEMenu} ... //DrawMenuBar(wnd); *) end;" Can you make it more.... hmmm know what to do? can't find that part of code ^^ ---------------------------------------------------------------------- emarquesc · 2017-08-23 17:13 Hi, did anyone get it working? thank you ---------------------------------------------------------------------- SonnyBoyXXl · 2017-09-06 21:00 Did you get it working ? Or still having problems? ---------------------------------------------------------------------- kwer · 2018-06-15 08:27 Hi, did anyone get it working?  -- An unhandled exception occurred at $00012708; EAccessViolation: Access violation $00012708 -- I think 'application.Intialize()' failed.  @SonnyBoyXXl  please upload your xxx.exe file for me to check it. My PDA device's CPU is ARM Cortex(R)-A7. ---------------------------------------------------------------------- LacaK · 2019-04-03 12:02 Same here on Symbol MC9200 with Windows Embedded Compact 7 and Dual core 1GHz OMAP 4 processor (ARM Cortex-A9) EAccessViolation $00012668 While on prior device MC9190 with Windows CE 6 and Marvell PXA320 processor (ARM v5TE compatible?) it runs without problems. ---------------------------------------------------------------------- LacaK · 2019-04-04 19:33 I have solved it using FpcUpDeluxe utility, which helped me to build cross compiler and 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 my application for WinCE 7.