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

Reply via email to