C#.NET应用程序找不到VS2017 ActiveX [英] VS2017 ActiveX not found by C# .NET application

查看:89
本文介绍了C#.NET应用程序找不到VS2017 ActiveX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拥有使用ActiveX OCX的古老VS2008环境。

Have ancient VS2008 environment which uses ActiveX OCX.

基于VS2008调度点和事件开发了新的VS2017 ActiveX OCX。

Have developed new VS2017 ActiveX OCX based on VS2008 dispatch points and events.

使用aximp从VS2017 OCX创建C#互操作DLL。

Used aximp to create C# interop DLLs from VS2017 OCX.

可以为C#.NET应用程序添加对互操作DLLS的引用。

Can add references to both interop DLLS for C# .NET application.

但是当CreateControl时为OCX调用,触发FileNotFound异常。

But when CreateControl is called for OCX, FileNotFound exception is triggered.

使用regsvr32注册原始OCX。

Have used regsvr32 to register the original OCX.

如何解析FileNotFound?

How can FileNotFound be resolved?

推荐答案

Hello Frank,

Hello Frank,

>>如何解析FileNotFound?

您需要向我提供完整的错误消息, 文件不存在您需要通过下载或其他方式获取它,最可能的原因是通过相对路径发生的。你需要确保你不属于这种情况。

You need to give me the entire error message, when the file doesn't exist you need to obtain it by downloading or others, the most possible reason is occurred by relative path. you need to ensure you aren't under this case.

最好的问候,

Neil Hu

这篇关于C#.NET应用程序找不到VS2017 ActiveX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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