flat assembler
Message board for the users of flat assembler.

Index > Main > Strange ! Why not include api ole\winmm.inc ?!

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 651
Location: Russian Federation, Sochi
ProMiNick
(to Melissa)
I can`t understand how COM & C++ related.
COM technology present in early 16 bit windows in times when C++ just not existed.
C++ supported COM, but COM never was part of C++.
I could say COM is specification for MS vtable in assembly (because it is independent from compiler).
Post 05 Dec 2020, 12:49
View user's profile Send private message Send e-mail Reply with quote
Melissa



Joined: 12 Apr 2012
Posts: 125
Melissa
ProMiNick wrote:
(to Melissa)
I can`t understand how COM & C++ related.
COM technology present in early 16 bit windows in times when C++ just not existed.
C++ supported COM, but COM never was part of C++.
I could say COM is specification for MS vtable in assembly (because it is independent from compiler).


COM is language independent because it is spec that you can implement. But C++ part is
that they implemented in C++ compiler Wink
Post 05 Dec 2020, 14:44
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 651
Location: Russian Federation, Sochi
ProMiNick
reason and effect are ...
I can implement COM in assembly because COM is language independent. But not in reverse order.
COM implementation is part of C/C++/C#/pascal/basic. (In basic it was based only over IDispatch)
If someone would digging deeper than COM implementation would be in assembly too (partialy already exists).
Post 05 Dec 2020, 17:26
View user's profile Send private message Send e-mail Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1656
Furs
In C++, you don't even have to use virtual functions. You can just implement it like in C, manually, with a pointer to a struct of function pointers (the "vtable"). Same with asm.
Post 06 Dec 2020, 16:20
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.