c - Naming function pointers in the vtbl -
sorry beginner question.
in article com in plain c read sentence:
one requirement of com object first 3 members of our vtable (i.e., our iexamplevtbl struct) must called queryinterface, addref, , release.
is true?
what if change names, parameters, calling convention , return values same ?
do still work this? if not why?
many response. (positive or negative.)
every com interface must derive iunknown. provides essential services: memory management (addref , release) , ability discover other interfaces implemented com object (queryinterface). v-table com interface therefore starts 3 function pointers implementation of these methods. actual names of functions or language written in not matter @ all, com cares function pointers.
you can name implementation functions want. intentionally not using iunknown function names unwise.
Comments
Post a Comment