public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Can gcc generate COM-compatible C++ class?‏
@ 2011-05-30  8:36 杨荣蔚
  0 siblings, 0 replies; only message in thread
From: 杨荣蔚 @ 2011-05-30  8:36 UTC (permalink / raw)
  To: gcc-help



Hello,

I'm developing CFPlugIn for Apple's iOS on Mac X using XCode 3.2 (gcc 4.2.1)

According to Apple's document, the CFPlugIn is COM-compatible.
http://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFPlugIns/Concepts/com.html#//apple_ref/doc/uid/20001158-CJBEJBHH

BUT, According to the comment for IUnknown in CoreFoundation/CFPlugInCOM.h , the compatibility depends on compiler.
/* This a definition of IUnknown as pure abstract virtual C++ class. This class will work only with compiler that can product COM-compatible object layout for C++ classes. egcs can not do this. MetroWerks can do this (if you subclass from __comobject) */

My question is:
"Is gcc the compiler that can product COM-compatible object layout for C++ class?"


You may also refer to this thread for the answers from MSDN for COM's C/C++ compatibility
http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/72cf41cb-4d73-4c5b-a986-b1c857a30fd5


Sincerely,
Raymond Yang.
 		 	   		  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-30  5:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-30  8:36 Can gcc generate COM-compatible C++ class?‏ 杨荣蔚

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).