用Add Component and Control加入一个ocx控件时VC都做了些什么?
我现在用Add Component and Control加入一个ocx控件,但总提示我:
The ActiveX control is not registerd properly,or its type library version number is incorrect.Try registering the control by removing and importing it in the Component Gallery.这是为什么?
注:我的控件可以在测试容器中正常使用。而且我在VC中用Add Class from a type library...也可以创建ocx的包装类。