COM(C++) 编程教程?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2938435/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 11:33:43  来源:igfitidea点击:

COM(C++) programming tutorials?

c++com

提问by Deep-B

Are there any good sites for learning C++/COM from the ground up? I'm looking for something like a crash course with perhaps two weeks' worth of content.

有没有从头开始学习 C++/COM 的好网站?我正在寻找诸如速成课程之类的东西,其中可能有两周的内容。

The course can assume knowledge in standard C/C++, or at least not a complete dummy.

该课程可以假设标准 C/C++ 的知识,或者至少不是一个完整的假人。

采纳答案by In silico

Since you're asking for websites, you can try this introduction to COMon The Code Project, and how to handle COM in plain Cand in C++on the same site. And of course, you have MSDN.

由于您要访问网站,您可以在 The Code Project 上尝试这篇对 COM 的介绍,以及如何在同一站点上使用纯 CC++处理 COM。当然,你有MSDN

回答by Bill

In addition to the websites recommended by 'In silico' take a look at Step by Step COM Tutorial.

除了“In silico”推荐的网站外,还可以查看Step by Step COM 教程

Finally Understanding COM After Changing a Light Bulbis not a 'crash course', but can be considered as 'the absolute minimum that a Windows programmer should know about COM'.

更换灯泡后最终理解 COM不是“速成课程”,而是可以认为是“Windows 程序员应该了解的 COM 的绝对最低限度”。

回答by Puppy

If you use Visual C++, then it can handle COM with virtually no COM-specific knowledge. You can jump into Direct3D programming with no COM knowledge, except "Call this funny function instead of operator new", and, "Roll a custom smart pointer class using this function".

如果您使用 Visual C++,那么它可以在几乎没有特定于 COM 的知识的情况下处理 COM。您可以在没有 COM 知识的情况下跳入 Direct3D 编程,除了“调用这个有趣的函数而不是 operator new”和“使用这个函数滚动自定义智能指针类”。