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

Carl Sturtivant sturtivant at gmail.com
Tue Mar 19 23:41:51 UTC 2024


On Tuesday, 19 March 2024 at 18:35:38 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> Basically what you are seeing is normal C++ class behavior.

Yes, C++ classes in D got it right as far as casting a D 
reference to a pointer goes, so as to fit in neatly with the 
external C++ world.

That's a reason for COM classes in D to do the same thing and not 
produce a meaningless bogus result. The same mechanism can be 
used as is already implemented for C++ classes.

As you point out, the only difference is that the functions 
pointed to in the Vtable are stdcall for COM.




More information about the Digitalmars-d mailing list