是不是系统的问题,应该如何解决?
sjdev 2008-07-13 03:22:23 想做一个ActiveX,于是使用Atl/COM Appwizard创建一个工程。
添加相应类和相应代码之后,进入vb进行测试,添加component时找不到我刚写的control,于是就手动定位到我所写控件的目录,结果提示:
The file 'item' was not registerable as an ActiveX Component.
This error has the following causes and solutions:
You tried to register a control or dynamic-link library (.dll) that is not a valid ActiveX component. Make sure that you have the correct control or .dll. Contact the ActiveX component's vendor for more information.
For additional information, select the item in question and press F1.
刚开始我以为是Atl/com工程配置造成的,于是使用mfc active controlwizard来创建工程,没有添加任何代码,使用vb测试,同样的错误。
当然了,这两种情况下使用tstcon32.exe进行测试时,在Insert New Control时,在列表中都找不到我所创建的control.
我的系统是vista,开发环境是vs6+sp6.