IDE:vs2010,c++,测试工具,vs自带的TstCon.exe(在D:\Program Files (x86)\Microsoft Visual Studio10.0\Samples\2052\VC2010Samples\C++\MFC\ole\TstCon\Debug下,没有的话编译一下工程,就会生成) 。分别在c++、c#、web下测试。
这里只是简单记录一下学习ocx的方法和事件。
具体就不说了,新建activex的工程后,直接添加方法和事件,这里方法和事件有常用的(mfc自带的),也可以是自定义的,最主要的就是根据自己的需求添加。
生成ocx后,下面是几张测试的截图,刚搞这个的要多测试几个小例子,上手了,再搞复杂的。





