I’ve been told that every COM method callable from C++ code (take for instance IHTMLDocument2::write) has an equivalent C declaration, usable from C code…
How do I find it?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This particular interface is documented as being provided by
<mshtml.h>. Now, as it happens the second and third line of that file are:Looking into that file, we find the declaration
Note that this is actually a pointer to the
IHTMLDocument2::writemethod.Sometimes the C declaration is the same header; sometimes the declaration isn’t publicly available. But the COM standard is an ABI (a binary interface) designed such that you can always write a C declaration. Could be painful though.