OpenDialog.Execute fails on WinCE with lazarus lazarus / 31-LCL ---------------------------------------------------------------------- polypress · 2013-07-14 15:25 I have been using OpenDialog component many times on Win32 and Delphi, but on using it for the first time on WinCE, it fails at Execute. Without this action, the program runs OK, but when Execute is inserted, it runs up to that line, but fails on reaching it. The versions are Lazarus 9.26 and FPC 2.2.2. Has anyone found this problem previously, and found a solution? Alternatively, is there another component which has the same action? Regards PolyPress ---------------------------------------------------------------------- Cyrax · 2013-07-14 16:56 Have you tried FPC 2.6.2 and Lazarus 1.0.10? ---------------------------------------------------------------------- polypress · 2013-07-14 19:58 No I haven't tried a different lazarus or FPC but I thought that such a basic problem (if it is a bug) would have been fixed years ago. Has anyone seen this problem before? Regards ---------------------------------------------------------------------- Mike.Cornflake · 2013-07-14 21:13 G'day, Lazarus 0.9.26 was *years* ago.  Sourceforge is reporting 2008. I've been constantly amazed at the amount of improvements made between each release of Lazarus.  While I haven't come across your specific problem, it may well be worth downloading the latest and trying. Cheers Mike ---------------------------------------------------------------------- marcov · 2013-07-15 07:02 Quote from: polypress on July 14, 2013, 09:58:03 pmNo I haven't tried a different lazarus or FPC but I thought that such a basic problem (if it is a bug) would have been fixed years ago. Has anyone seen this problem before? Yes and no. The dialogs are a frequently involved in problems, but because WinCE usage is low, and there is not much feedback, the exact status is not known. For the record, which CE do you use? ---------------------------------------------------------------------- polypress · 2013-07-15 09:56 Thanks for the replies. I use Windows Mobile 6.5 on HTC Touch Pro2. I am reluctant to download and use a later version of lazarus and FPC because I have many programs running on WinCE using many components, and it may upset their operation if I were to change versions. Is there an alternative to OpenDialog, or can I download just a revised version of OpenDialog without having to download everything else? Regards ---------------------------------------------------------------------- Bart · 2013-07-15 11:43 You can have multiple versions of Lazarus/Fpc up and running on the same machine without much problems. Bart ---------------------------------------------------------------------- polypress · 2013-07-15 13:53 Yes I've tried this on another computer but it caused problems - probably nothing to do with lazarus + FPC, and there's probably not enough space on my main computer, despite 200+GB hard drive, leaving 20GB spare for general use. I have been experimenting with Linux for clipboard functionality, but it is very limiting and I needed to partition it. My preferred option is to use another component which works OK. Would importing the Delphi OpenDialog component work? If so, how do you do it? I assume WinCE compatibility would be a problem. Regards ---------------------------------------------------------------------- polypress · 2013-07-15 15:58 I have tried converting the Delphi OpenDialog component to lazarus as a unit and as a package. Neither seem to work. I've compiled a mini Delphi project using OpenDialog and tried importing that project into lazarus, but it won't accept it. Any ideas? Regards ---------------------------------------------------------------------- polypress · 2013-07-19 08:11 I have now installed the latest version of lazarus (1.0.10) and FPC (2.6.2). 1) On the existing computer where 0.9.26/2.2.2 already resides, but it has upset the latter's operation, so I have uninstalled both versions and reinstalled 0.9.26/2.2.2 and now my original projects work OK, but not the OpenDialog project. 2) On a totally independent computer where all trace of previous versions have been removed. However, this will not accept new components which work perfectly well on 0.9.26/2.2.2. On trying to install them, it claims it can't find Graphics (then Controls) package used by unit. I notice in Environment (Tools) Options that it uses ppc386.exe whereas it previously used fpc.exe in the compiler path. Is the former for cross compiler (but for win32) and the latter without cross compiler installation? This seems to get more and more illusive. Regards ---------------------------------------------------------------------- polypress · 2013-07-21 11:24 Success. I have had to install 1.0.10/2.6.2 on an independent computer as installation on the original computer running 0.9.26/2.2.2 interferred with the running of the other applications. There were teething problems in getting the new installation up and running, but eventually it was OK. The teething problems were mainly to do with path definitions. Thank you for all your help. Regards ---------------------------------------------------------------------- DtC17 · 2013-08-02 16:33 ...and did this fix your OpenDialog issue? I'm asking because I'm having a run-in with the LazResource reader (well actually, the FPC TReader class it builds upon) and dialogs are involved. Also, per MSDN these functions are implemented since CE 5.0... You may want to check the exact call in your widgetset, and see what it reports when fired manually. (GetLastError may also do the trick) ---------------------------------------------------------------------- polypress · 2013-08-06 08:30 Yes it did fix it. OpenDialog now works on the wince device, as do several other features which did not work when using 0.9.26/2.2.2 Regards ---------------------------------------------------------------------- felipemdc · 2013-08-06 08:43 Quote from: marcov on July 15, 2013, 09:02:05 amYes and no. The dialogs are a frequently involved in problems, WinCE dialogs are not involved in frequent problems as far as I know. Quote but because WinCE usage is low, and there is not much feedback, The usage is not nearly that low. Now there was a lot of moving around in sourceforge, and WinCE lost usage because Windows Phone 8 is not backwards compatible, but historically WinCE was the 3rd most popular Lazarus platform after Windows and Linux. Quote the exact status is not known. WinCE dialogs work fine, I wrote them myself. ---------------------------------------------------------------------- polypress · 2013-08-09 08:02 I'm impressed! I know this is going off the point, but you mention that Windows Phone 8 is not backward compatible. I'm looking for a new smart phone and HTC One Windows has been recommended. This uses Windows Phone 8. Does this mean that my previously written programs using lazarus won't work, or some of them? What are the criteria? Regards ---------------------------------------------------------------------- BigChimp · 2013-08-09 09:21 Windows Phone 8 is not compatible *at all* with Windows mobile AFAIU. Those are the criteria. I don't know who recommends your phones, but I'd probably avoid his advice in future. Windows has almost no market share.