473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ComTypes.FORMATETC

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.......
Jul 28 '06 #1
1 2527
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.......

Jul 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lloyd Dupont | last post by:
I'm implementing my own, custom, internationalized text editor. I'm trying to implement copy/paste right now. Which cause me some trouble. I'm using .NET 2.0 beta 2 (I have ordered and I'm waiting...
4
by: Bob Staheli | last post by:
The .Net DataObject class implements the COM/OLE IDataObject interface , so how do I get it. I have tried this, but it does not work : // Declare the COM/OLE IDataObject interface public...
6
by: Pucca | last post by:
I have a program that originally compiles into a exe file. I changed the compile option to generate dll file. This program calls a com component. Can I use pinvoke in C# to call it? The...
2
by: Jeff | last post by:
Ok you can drag and drop from Outlook Express to the desktop and get an EML file on the desktop. Anyone have any idea how I can drag and drop from OE to my application and get an EML file? ...
3
by: winkatl1213 | last post by:
Hello, I am working with comtypes to interface Microsoft's DirectShow library. First, I found a Type Library on the internet that was created for accessing DirectShow from .NET. It seems that...
0
by: Thomas Heller | last post by:
comtypes seems to gain some attention (comtypes is a pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.) I'll try to release a new version over the...
2
by: wcc | last post by:
Hello group, Is there a separate mailing list for comtypes? Or this is the appropriate place to post questions related to this package(from Thomas Heller)? Thanks, -- wcc
0
by: LugPaj | last post by:
Hallo, i am trying to get updates, when the view of a .net webbrowser control is updated. So i implemented the IViewObject of this one and tried to use setadvise, so that a function is called,...
0
by: =?ISO-8859-1?Q?=22Ro=DFert_G=2E_Schaffrath=22?= | last post by:
Sorry for the cross-posting. I am having a hard time trying to classify exactly what group this question would apply to. I had posted an earlier message to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.