atl

Enumerate COM object (IDispatch) methods using ATL?

坚强是说给别人听的谎言 提交于 2019-11-26 23:10:13
问题 Using ATL (VS2008) how can I enumerate the available methods available on a given IDispatch interface ( IDispatch* )? I need to search for a method with a specific name and, once I have the DISPID , invoke the method (I know the parameters the method takes.) Ideally I would like to do this using smart COM pointers ( CComPtr<> ). Is this possible? 回答1: You can't enumerate all the available methods unless the object implements IDispatchEx. However, if you know the name of the method you want to

CLR ATL

耗尽温柔 提交于 2019-11-26 10:44:07
前段时间,帮人改了个项目,里面明明感觉是MFC,但是却调用C#的类函数,用的都是gcnew指针,凭借着对C#的熟悉,一点一点的实验,终于帮人把程序改好了,但是却不知道到底是什么东西,C#和MFC的混合编程?感觉也不像,现在发现原来是CLR,找了两篇文章,标记一下,便于以后学习。 文章和代码需要后续验证。 文章1 ATL用于编写COM程序,CLR是.NET的公共语言运行库,MFC是指MFC类库,MFC程序是用这些类库做出的程序,WIN32常规就是不用 MFC,使用API函数编的程序。 MFC、ATL和CLR是VC2005内置的3大库,涵盖了windows的各种开发方法和开发应用。当然关于C++开发的库不止这3个,不过这3个是微 软推荐。从编程所处层次而言,WIN32为最底层,其次是MFC.然后是CLR. WIN32 winAPI MFC MFC类库 CLR .net库. WIN32常规就是不用MFC,使用API函数编的程序。 MFC库有很多年的历史了,MFC是基于Windows API 的简单封装。其核心架构基于”Document/View”架构(20年前被认为很潮流的一种概念)和消息流动机制。这个库自从VC6开始到现在都没有多 大改动。MFC封装的范围包括GUI,IO,数据库,网络编程等等方面。但是很多系统开发必须的api都没有封装,这样开发者一般都在MFC的基础上自己

How to get started with developing Internet Explorer extensions?

时光毁灭记忆、已成空白 提交于 2019-11-26 00:12:51
问题 Does anyone here have experience with/in developing IE extensions that can share their knowledge? This would include code samples, or links to good ones, or documentation on the process, or anything. I really want to do this, but I\'m hitting a giant wall with lousy documentation, lousy code/example code/lack thereof. Any help/resources you could offer would be greatly appreciated. Specifically, I would like to start with how to get access to/manipulate the DOM from within a IE extension.