This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: COM DLL with Cygwin C++?
- To: Julian Hall <cygwin at cygwin dot com>
- Subject: Re: COM DLL with Cygwin C++?
- From: jcast at cate1-208 dot reshall dot ou dot edu
- Date: Fri, 13 Jul 2001 11:14:02 -0500
- Reply-To: cygwin at cygwin dot com
Julian Hall <jules@acris.co.uk> wrote on Fri, 13 Jul 2001 11:05:53 +0100:
> I tried to make this work a little while back; unfortunately G++'s
> object model seems to be incompatible with MSVC++'s, with the effect
> that only COM objects written in C can be compiled with G++. I
> think this is due to the name mangling, but there is also a problem
> with exception handling.
> Jules
IIRC, COM uses its own (HRESULT-based) exception handling, so that's
not an issue. Furthermore, name mangling has /nothing/ to do with
COM; COM lives exclusively at the binary level. The only names COM
cares about are the hooks it uses to get your class factory, and I
believe they're `extern "C"'.
Any incompatibility between COM/MSVC++ and g++ that's relevant here
would be in the virtual function ABI, not in the areas you mention.
FYI
Jon Cast
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/