Problems with lazarus zeosdbo by compiling for wince lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- lazarus_chris · 2009-11-17 10:17 Hello together! I want to create a application (gui) with lazarus for wince. The application should connect to an sql server 2005 I have problems by including the components of ZEOdbo when I compile for wince This my steps:  Until Step 2 (down) I compile for win32 for testing first.! STEP1: -> I install the "lazarus-0.9.28.2-fpc-2.2.4-win32" -> Then the "Lazarus-0.9.28.2-fpc-2.2.4-cross-arm-wince-win32" -> Open lazarus and generate a new project -> I do the things in this tutorial (http://wiki.lazarus.freepascal.org/Zeos_tutorial)    -> Download the "ZEOSDBO-6.6.4-stable.zip" and extract the files    -> Download the "TortoiseSVN-1.6.6.17493-win32-svn-1.6.6.msi" and install this (restart the pc after setup)    -> make the checkout from windows explore (svn://zeos.firmos.at/zeos/trunk), it works! -> Open Lazarus and save the default project1 (the default project with the empty form!) -> Compile all (Start > compile all) > no errors! -> go to package > load packages (lpk) and select the "zcomponent.lpk" -> In the package zcomponents-form I press install -> By the dialog with the question recompile i press yes -> Make the steps with the connectors.. -> TEST - It works!!!!!!! STEP2: (Now I want to compile for wince / arm -> I change the compilerconstant Options > Options "FCP.exe" to:  B:\lazarus\fpc\2.2.4\bin\i386-win32\ppcrossarm.exe Project > Paths > LCL-Interface to: wince (beta) Project > Sourcecode > target-OS to : WinCE Project > Sourcecode > target-CPU to : arm When I now compile I received the attached error messages Can someone help me please? Support zeosdbo the wince ? Must I change some files or sources??? Thanks and best regards from germany Chris ---------------------------------------------------------------------- Marc · 2009-11-17 10:51 unlike win32 api, the wince api uses WideChar for its strings. So loadlibrary expects a widechar. You can have a peek in ZEOS trunk (7.x) if they have fixed it there. Otherwise you can try casting likeCode: [Select]  {$ifdef WINCE}PWideChar(WideString(Location)){$else}PChar(Location){$endif} ---------------------------------------------------------------------- lazarus_chris · 2009-11-17 11:50 Thanks! I try it and a few steps later we receive a new erorr   {$IFNDEF UNIX}     if doOemTranslate in FOptions then     begin       if ToOem then         CharToOem(Src, Dest)      else OemToChar(Src, Dest);       Dest[Result] := #0;     end     else            how can I transact the ChatToOem for wince? Thanks and regards ---------------------------------------------------------------------- theo · 2009-11-17 13:11 http://www.lazarus.freepascal.org/index.php?topic=6595.0 ---------------------------------------------------------------------- lazarus_chris · 2009-11-17 14:18 Hello Theo! Thanks for your reply! I m by thenext step i finished compillation for WInce now successfull but after I insert the zconnection button on my form the form is not displayed by the windows mobile emulator. Before insert of the zconnection it is displayed! What is the reason? Thanks and regards ---------------------------------------------------------------------- Nicola Gorlandi · 2009-11-18 12:13 I posted in ZeosLib forum the same problem. I haven't received any answers.. that's the link http://zeos.firmos.at/viewtopic.php?t=2338&postdays=0&postorder=asc&st art=15