<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=3 face=Arial>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).<BR><BR>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.<BR><BR>Are there any
missing ingredients?</FONT></DIV>
<DIV><FONT size=3></FONT><FONT face=Arial><BR></FONT><FONT size=3 face=Arial>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).<BR><BR>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?<BR><BR>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.<BR><BR>Can anyone
give any more suggestions of how to overcome the problem? Any help would be
gratefully received.</FONT></DIV>
<DIV><FONT size=3 face=Arial></FONT> </DIV>
<DIV><FONT size=3 face=Arial>An example of its successful implementation on
Windows CE would be a great help.</FONT></DIV>
<DIV><FONT size=3 face=Arial></FONT> </DIV>
<DIV><FONT size=2><FONT size=3
face=Arial>Regards</FONT></DIV></FONT></FONT></DIV><BR>
<BR>
__________ Information from ESET Smart Security, version of virus signature database 5083 (20100503) __________<BR>
<BR>
The message was checked by ESET Smart Security.<BR>
<BR>
<A HREF="http://www.eset.com">http://www.eset.com</A><BR>
</BODY></HTML>