DMD 1.022 and 2.005 releases

Walter Bright newshound1 at digitalmars.com
Wed Oct 10 02:13:31 PDT 2007


KlausO wrote:
> C# does not connect to C++ directly (via name mangling). You can invoke 
> C funktions and specify struct alignments for struct used in these calls.
> When it comes to interfaces and callbacks/callback interfaces you have 
> to use Managed C++. COM Interop is the keyword, but IMHO, the syntax is 
> sometimes weird and you have to write RCW/CCW (stands for "Runtime 
> Callable Wrapper" and "COM Callable Wrapper") pairs in Managed C++ to 
> support (COM) interfaces.
> There is a good book about this:
> 
> http://www.informit.com/store/product.aspx?isbn=067232170X&rl=1


D has had support for COM from day 1. But D's new support for C++ goes 
much further. Global functions can be accessed directly, non-COM 
polymorphic objects can be accessed, and the C++ calling convention is 
observed (the COM function calling convention is different).



More information about the Digitalmars-d-announce mailing list