VC ++如何在VS-2008中使用清单注册Activex控件? [英] VC++ How to register Activex control using manifest in VS-2008?

查看:227
本文介绍了VC ++如何在VS-2008中使用清单注册Activex控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在VS-2008中使用清单文件注册控件.

在VS-2003中,对于OCX的相同项目,在清单文件(RES \ AppName.exe.manifest)中添加了OCX的属性条目,其中ocx控制文件保存在debug文件夹中,清单文件包含在资源文件(RC文件)中.

Hi,

I want to register control using manifest file in VS-2008.

In VS-2003 for same project attribute entries of OCX was added in manifest file(RES\AppName.exe.manifest) where ocx control file kept in debug folder and manifest file is inclued in resource file(RC file).

IDR_MANIFEST RT_MANIFEST "res\\AppName.exe.manifest"


在构建对控制效果很好的项目之后(即Dialog wich具有ocx控件能够显示).

请说明我是否对VS-2008执行相同的步骤,为什么会失败?
VS-2008不再支持使用清单来注册ActiveX控件吗?
如果它支持该问题要克服的步骤?


After build of project which works fine for control(i.e. Dialog wich has ocx control able to display) .

Please explain if I do same steps for VS-2008 why it fails?
VS-2008 no longer support to register activex control using manifest?
If it support what are step to overcome from this problem?

推荐答案



您只需使用DllRegisterServer()即可注册activex.
或转到命令提示符,然后键入regsvr32 test.ocx.这将注册activex控件..

问候,
Satheesh
Hi,

you can simply register the activex by using DllRegisterServer().
or go to command prompt, and the type regsvr32 test.ocx. This will register the activex control..

Regards,
Satheesh


这篇关于VC ++如何在VS-2008中使用清单注册Activex控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆