找不到引用的组件"XXX".

编程入门 行业动态 更新时间:2024-10-26 04:29:52
本文介绍了找不到引用的组件"XXX".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我收到了过去的冲击波"项目请求. 该项目最初是在VB6中开发的,后来又移植到VB.Net.上一次在IDE中运行它是在运行VB.Net 2003的Win XP计算机上. 我被要求清除源代码并进行一些小的修改(并将其带入最新的VB.Net,2010年).当前的开发平台是运行VB.Net 2010 Express的Windows 7.我还安装了VB6,尽管Windows 7抱怨说存在已知问题. 源代码已加载,但不会运行.显示的警告如下:

I got a "Blast from the Past" project request. The project was originally developed in VB6 and later ported to VB.Net. The last time it ran in the IDE it was on a Win XP Machine running VB.Net 2003. I have been asked to dust off the source and make some minor modifications (plus bring it into the latest VB.Net, 2010). Current development platform is Windows 7, running VB.Net 2010 Express. I also installed VB6, dispite complaints from Windows 7 stating there were known issues. The source code loads, but will not run. The warnings displayed are as follows:

Cannot load type library for reference "StdType". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) Cannot load type library for reference "MSXML2". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

解决方案资源管理器中的参考列表显示有关"MSXML2","StdFormat"和"StdType"的警告提示 关于如何解决这些丢失的参考文献的任何想法? TIA

The reference list in the solution explorer shows warning notices on "MSXML2", "StdFormat", and "StdType" Any ideas on how to fix these missing references? TIA

推荐答案

您必须使用regsrv32(对于32位组件)或regserver(16位组件)注册activeX组件. 您可以从命令提示符处执行此操作: C:> regsrv32 mycomponent.dll 当然,您需要知道要注册哪些dll.不能帮您,但是您可能会在项目中找到该信息?!?! 最后一点:甚至不确定旧的ActiveX组件是否可以在Windows 7上运行-我认为已经删除了对16位组件的支持,但是我不确定.因此,您必须希望您的组件为32位... you have to register activeX components using regsrv32 (for 32 bit components) or regserver (16 bit components) You do that from the command prompt: C:>regsrv32 mycomponent.dll Of course you need to know what dll''s to register. Can''t help you with that, but you might find that information in your project?!?! And last: It''s not even sure that old ActiveX components will run on Windows 7 - I think that the support for 16 bit components have been removed, but I''m not sure. So you have to hope that your components ar 32 bit...

我尝试注册msxml2(msxml2.dll和interop.msxml2.dll),并且返回了错误.有关模块的内容已加载,但找不到入口点. 我没有找到stdFormat和stdType的直接dll,但是互操作版本在尝试注册时都抛出错误. 也许这是一个绝望的原因? I tried registering the msxml2 (both the msxml2.dll and the interop.msxml2.dll) and they returned an error. Something about the module was loaded but an entry point could not be found. I did not find a direct dll for stdFormat and stdType, but the interop versions both throw errors when attemping to register. Perhaps this is a hopeless cause?

更多推荐

找不到引用的组件"XXX".

本文发布于:2023-11-04 10:23:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557668.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   组件   XXX   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!