You must learn a lot about COM in order to know that you no longer want to learn.
The details of COM - especially from a multithreaded or C ++ application - are painfully annoying, and I would not want them (I myself do not know them, but I know that I know this).
Therefore, if you need to call the COM library, you should find out enough COM to be able to do this, and then stop. Ideally, use a language such as C # or Delphi, where some (or, hopefully, most) details are processed relatively transparently for you.
There are many COM libraries, but if you feel that you want to use them, you should look at its specific documentation on how to do this - you probably have a reasonable example that you can simply adapt for your own use without much effort. If this is not the case, then this is clearly not very good and should not be used.
Markr
source share