[fpc-pascal] Clipboard on WindowsCE
Does anyone know how to activate the clipboard when programming for Windows CE? I can do it OK when programming for Win32 etc, but not for WinCE. The message when the program is run is "IndexOfCached FormatID Internal Error: Invalid FormatID 0 for clipboard". Sure enough, there are no valid formats on the clipboard (count = 0). I have tried adding formats (AddFormat) and new formats (RegisterClipboardFormat) but without success. The installed platform for Lazarus/Free Pascal is Windows XP (Home). I have been trying for months, but with zero success. It only needs to work (currently) for text as I have no need for images etc at present. Are there any missing ingredients? I have more recently downloaded Lazarus 9.28.2 (previously it was 9.26.0) and FPC 2.2.4 (previously it was 2.2.2) and still get exactly the same problem, despite compiling it on a different computer (but still XP operating system). When run with Win32 it works fine on the XP platform, but when recompiling for WinCE using virtually the same code (but modified for WinCE as done successfully for other programs not using the clipboard), it fails at runtime on the Windows Mobile 6.1 and 6.5 platforms with same message as reported originally. There are no compiler errors, so that side of it is presumably OK. It has to be to do with the implementation of the Clipboard components, doesn't it? I have tried all the options I can think of, and those suggested by others, but can get no further forward. I have even tried running Lazarus under Linux, but this does not work either. Can anyone give any more suggestions of how to overcome the problem? Any help would be gratefully received. An example of its successful implementation on Windows CE would be a great help. Regards __ Information from ESET Smart Security, version of virus signature database 5083 (20100503) __ The message was checked by ESET Smart Security. http://www.eset.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Clipboard on WindowsCE
Thank you, Felipe, for your suggestion of using Lazarus version 0.9.29. However, the only way of making it work was to completely remove all trace of previous versions of Lazarus (0.9.26, 0.9.28.2). Now I can use the clipboard with WindowsCE on the smartphone. However, there is one major problem - I had installed several extra components on the previous versions which allowed grids to be aligned within each cell and for each column to be sorted (alphabetically or numerically). Those components cannot now be installed - the error message is "Can't find unit Controls used by AlSortGrid" from the AlSortGrid.pas file. If this unit reference is removed it then says "Can't find unit Forms used by AlSortGrid" and so on through the list in the uses section. These units can be found OK when using the StringGrid unit in the Additional component tab on the IDE, so I assume the problem is the search path used by the component. I cannot find a search path specific to the Packages Component units. I have tried rebuilding the entire installation, searching for config files. I am running XP so these appear within the Lazarus installation (unlike Vista where they appear within Documents and Settings, outside the Lazarus folders) so should be removed on complete removal of previous versions. I have checked where they are pointing to and appear OK. Do you have any comments or suggestions please? Regards __ Information from ESET Smart Security, version of virus signature database 5097 (20100509) __ The message was checked by ESET Smart Security. http://www.eset.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Installing Component Packages (ex Clipboard on WindowsCE)
Thankyou, Felipe, for your comments concerning multiple versions of Lazarus. I am now using only one (different) version on each computer. This refers to your comments concerning the installation of component packages into Lazarus/FPC. They have been running OK once installed in Lazarus 0.9.26/FPC 2.2.2. However, on trying to install them into either 0.9.26/2,2,2 or 0.9.28.2/2.2.4 or 0.9.29/2.4.1 which have been installed individually on three different computers without any previous history of Lazarus (2 are running XP, 1 is running Windows 7) I always get the same errors - "Can't find unit Unix", or "Can't find unit Controls", etc. etc. Another message is "Argument can't be assigned to", despite being perfectly happy to be assigned to in a previous installation. I have one other computer which already still has the component installed and when running "Build All" the application it builds OK using the previously installed component (running with 0.9.26/2.2.2). I haven't tried installing other components on this same computer for fear of affecting its performance with the main AlSortGrid component. They are all source code, and it is when I try to compile / install them that the problems occur. I have checked the source directory and it is OK, and it is the same on all computers (except for the FPC version directory), including the one with it still installed OK. I have also checked a backup copy taken several months ago, and this also points to the same directories. It is very mysterious as to why it rejects all attempts to compile on all computers and which have or have not seen Lazarus before, but why standard Lazarus components (eg StringGrid, on which AlSortGrid is based) run OK. I do not want to change the first computer configuration which is OK otherwise I may not be able to reinstate it, but I will be happy to try anything on any of the others (apart from a System Restore which would affect other settings on the computers). Regards __ Information from ESET Smart Security, version of virus signature database 5103 (20100510) __ The message was checked by ESET Smart Security. http://www.eset.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Installing Component Packages
It is a component previous written (and modified by me) for Delphi and transferred to Lazarus. It originally worked on 0.9.26/2.2.2, and still does on one computer. I am sure the source code has not changed since then. The package is just a new package produced using Lazarus, containing the source code of the component, but it will not compile or install. It will not compile or install on any other computer, whether running 0.9.26/2.2.2, 0.9.28.2/2.2.4 or 0.9.29/2.4.1 so unless there are subtly different sub-versions of Lazarus or FPC within the above more major versions it should work as previously. I think the downloaded exe installer is the same one used on each of the attempts with 0.9.26/2.2.2, including the original successful one, so I don't think I can blame it on a sub-version either. If the version of Lazarus and FPC is the same, why would it just stop allowing installation? Could you send me a standard environmentoptions.xml file which you would expect to work and I'll check it against the one this Lazarus is using. Where are the compiler options and project options details stored? If they are outside the lazarus directories then perhaps these need to be modified as they would not be modified with a reinstalled version (after uninstalling the previous version). Are there any other files outside the Lazarus directories which could affect the way Lazarus interprets things? I'm running XP mainly, but it also occurs with Windows7. Regards __ Information from ESET Smart Security, version of virus signature database 5104 (20100511) __ The message was checked by ESET Smart Security. http://www.eset.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Installing New Components (0.9.29/2.4.1)
On investigating this problem in more detail, it seems to be associated with the following circumstances :- 1) It is when trying to install in Lazarus 0.9.29 / FPC 2.4.1 2) It is specific to installing for WinCE - Win32 seems to be OK Originally, the component was installed on 0.9.26/2.2.2 for just Win32. Then WinCE was added on the same installation and worked OK, with the component still appearing on the Component Palette. The applications using this component also worked OK for desktop (Win32) and smartphone (WinCE - Windows Mobile 6.5). On trying the same for Lazarus 0.9.29 / FPC 2.4.1 the component installed OK again on the Component Palette and in the (Win32) application with Win32 installed, but when trying to install WinCE with all the mods required by WinCE, the component still appeared on the Component Palette, but it does not work in the application running WinCE / Windows Mobile 6.5. The cells of the grid do not fill with data, and the grid does not appear correctly on the phone - there are no grid lines or cells etc. I have also tried to install an exact copy of StringGrid on the Component Palette. It installs on the palette OK under Win32, but when trying install it again under WinCE (calling it 'NewStringGrid') and to use the new component (identical to StringGrid) on the WinCE application, the following error message appears "The project uses target OS=Error: illegal parameter; -Twin32 and CPU=Error: illegal parameter; -Twin32, The system.ppu for this target was not found by the FOC binary directories Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories." The problem now seems to be less to do with the source code of the new component, and more to do with the settings within Lazarus and FPC. I have tried all obvious combinations, but without success. The same problem occurs with new 'virgin' installations of Lazarus / FPC aswell as installations added to 0.9.26/2.2.2. Has anyone managed to install new components into Lazarus 0.9.29 / FPC 2.4.1 and successfully run applications using those (visual) components using WindowsCE / Windows Mobile 6.5? Any contributions would be gratefully received. Regards __ Information from ESET Smart Security, version of virus signature database 5138 (20100522) __ The message was checked by ESET Smart Security. http://www.eset.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal