Windows Embedded Compact 7 - Unable to import library aygshell lazarus / 35-Windows CE ---------------------------------------------------------------------- swierzbicki · 2014-07-16 11:56 Hello, Can somebody helps me with this issue ? My exe (wince/arm) failed to load on Windows Embedded Compact 7 device. It stops with this error : Unable to import library aygshell This exe used to works from Windows Mobile 5 to Windows Embedded 6.53. Aygshell is available in windows folder ! Where should I start ? ---------------------------------------------------------------------- bambamns · 2014-07-17 04:04 Try to read and make changes like in post http://forum.lazarus.freepascal.org/index.php/topic,23237.0.html ---------------------------------------------------------------------- swierzbicki · 2014-07-17 09:38 Hello Thank you for your tip but can you help me on this ? I've deleted aygshell*.* files in "C:\lazarus\fpc\2.6.4\units\arm-wince\winceunits" folder but I'm no more able to compile my project. I'm getting error like : Quotewince\winceint.pp(41,5) Fatal: Can't find unit aygshell used by WinCEInt I've tried to add "C:\lazarus\fpc\2.6.4\source\packages\winceunits\src" to the add. search path but it failed too. Thank you ---------------------------------------------------------------------- bambamns · 2014-07-17 19:16 As I can see, problem is in 3 functions : SHCreateMenuBar, SHFindMenuBar, SHRecognizeGesture. Goal is to remove calls from WinCe-LCL , not to delete aygshell*.* files. Reinstall Lazarus and FPC and make this changes. ---------------------------------------------------------------------- swierzbicki · 2014-07-17 20:22 I have restored aygshell*.* compiled files. You are telling me that I need to modify WinCE-LCL files ? Does this means that all files located in folder C:\lazarus\lcl\interfaces\wince should be modified ? Thank you for your help ---------------------------------------------------------------------- bambamns · 2014-07-18 03:44 No, you have to try to change ..fpc\2.6.4\source\packages\winceunits\src\aygshell.pp to exclude api calls for  SHCreateMenuBar, SHFindMenuBar, SHRecognizeGesture. Well, another step is to recompile FPC for arm-wince (this can be tricky) or to try to copy all files from ..fpc\2.6.4\source\packages\winceunits\src\ with changed aygshell.pp to your project folder and then recompile whole project. I didn't tried this - this is only my guess what pcler did in http://forum.lazarus.freepascal.org/index.php/topic,23237.0.html ---------------------------------------------------------------------- swierzbicki · 2014-07-20 18:54 I was able to exclude api calls for  SHCreateMenuBar, SHFindMenuBar, SHRecognizeGesture. I had endless access violation when running my project under Windows CE 7... I'm now stuck in the middle of nowhere. Who can help me on this ? ---------------------------------------------------------------------- SonnyBoyXXl · 2016-02-15 23:14 look here http://forum.lazarus.freepascal.org/index.php/topic,31533.0.html