core.sys.windows.com.ComObject apparently has wrongly laid out Vtable

Carl Sturtivant sturtivant at gmail.com
Thu Mar 21 17:19:56 UTC 2024


On Thursday, 21 March 2024 at 16:07:46 UTC, Walter Bright wrote:
> On 3/21/2024 6:22 AM, Carl Sturtivant wrote:
>> would produce a class with extern(Windows) calling and an 
>> extern(C++) COM compatible vtable.
>
> There are two vtables in that example - one for the C++ class, 
> and one for the COM interface. They are not interchangeable 
> with a cast, because the layouts are different.

Good to know! Thank you.


More information about the Digitalmars-d mailing list