问题:
我在学习编程过程中,在ocx静态调用Dynamic Link Library,链接提示错误:Project:error PRJ0050:未能注册输出。请尝试启用“每个用户的重定向”,或用提升权限从命令提示窗口中注册该组件。以为是win7中权限问题,可以看了属性没什么问题?
解答:
根据所述,肯定不是权限问题,而是由于在ocx中引用的dll,没有放在生成ocx控件的目录中,链接就出现了找不到的提示信息。
另外查询的资料供参考如下:
[c++]"Project : error PRJ0050: 未能注册输出。请确保您有修改注册表的相应权限"错误的解决
原创空间, 软件技术, 电脑与网络
邢红瑞 发表于 2007-9-24 19:49:39
使用vs 2005写ocx控件,一个字 爽,遇到Project : error PRJ0050: 未能注册输出。请确保您有修改注册表的相应权限错误的解决 很不爽。
看了半天,我是管理员权限,删除debug也不行。Project : error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry真是麻烦。
只好一步一步看作了哪些改动,发现调用了一个dll。这个lib我已经#pragma comment(lib,"tmdApi.lib"),删除dll的调用就行,考虑一下,只好把dll cpoy到output directory目录就行了。所有第三方的dll放在一起,然后注册。
发现在当前目录, %windir%, %windir%\system32都可以。
微软也够害人的
http://msdn2.microsoft.com/en-us/library/ms235584(vs.80).aspx
Project Build Error PRJ0050
Error Message
Failed to register output. Please ensure you have the appropriate permissions to modify the registry.
The Visual C++ build system was not able to register the output of the build (dll or .exe). You need to be logged on as an administrator to modify the registry.
If you are building a .dll, you can try to register the .dll manually using regsvr32.exe, this should display information about why the build failed.
If you are not building a .dll, look at the build log for the command that causes an error.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/qinlicang/archive/2009/07/02/4315318.aspx
Javascript调用ActiveX对象
http://www.csharpwin.com/dotnetspace/10222r1592.shtml
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!