The original FORMATETC (in objidl.h) defines cfFormat as CLIPFORMAT, which
in turn is defined as WORD (in wtypes.h) so this seems correct. You are
correct that RegisterClipboardFormat returns int, but the text says that the
returned value is in the range 0xC000 to 0xFFFF so they should fit just fine
in a short.
However, in CE and Mobile cfFormat seems to be defined as int though (at
least according to the docs). Go figure...
/claes
"Jeff" <je*********@lindholm.orgwrote in message
news:aW********************@newssvr13.news.prodigy .com...
How does this work, who is the person that translated
ComTypes.FORMATETC.cfFormat from a long to a short?
Did I miss something somewhere that said that a long in a C++ structure
translates into a short? This is really bad since
RegisterClipboardFormat() returns a long so you can't even use the result
in the object.......