简体   繁体   English

COM DLL简介

[英]Intro to COM DLL

Before you tell me "google it" - hear me out. 在你告诉我“google it”之前 - 听我说。 I come from C++ & Perl/Python (on Linux) background but I have a few projects coming up where I have to jump in to Windows development. 我来自C ++和Perl / Python(在Linux上)背景,但我有一些项目即将进入Windows开发。 Specifically creating some COM DLLs (not .Net). 专门创建一些COM DLL(不是.Net)。 BTW, after reading some resources, I do have basic idea of what COM & what DLL is. 顺便说一句,在阅读了一些资源后,我确实知道了什么是COM和什么是DLL。

I tried to search on Google, but most of the tutorials I encountered assumed some Windows dev experience or at least that is how it seemed to me. 我试图在Google上搜索,但我遇到的大多数教程都假设了一些Windows开发经验,或者至少就是我的看法。 So, I was wondering if some one went through a similar path & could probably point in a direction that'd help me get jump started on developing COM DLLs. 所以,我想知道是否有人经历了类似的路径并且可能指向一个帮助我开始开发COM DLL的方向。 I have access to VS2005. 我可以访问VS2005。 Thanks. 谢谢。

在VS中编程时尝试创建COM可见组件

The "no .NET" requirement forces you to write code in unmanaged C++. “无.NET”要求迫使您在非托管C ++中编写代码。 COM has a pretty steep learning curve, flattened somewhat by using ATL. COM有一个非常陡峭的学习曲线,使用ATL有点扁平化。 At least will will help you get the basics right. 至少会帮助你掌握正确的基础知识。 VS2005 has built-in class wizards to generate the boilerplate code you'll need and keep you code and the IDL in sync. VS2005具有内置的类向导,可生成您需要的样板代码,并使代码和IDL保持同步。 You'll need a good COM book (hard to find) and Chris Sells' ATL Internals. 你需要一本好的COM书(很难找到)和Chris Sells的ATL Internals。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM