如何生成AxInterop文件? [英] How to generate AxInterop files?

查看:252
本文介绍了如何生成AxInterop文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个.NET项目,该项目依赖于旧的VB6 OCX(整个原本是VB6和C ++,我们正在逐步将其全部迁移到.Net,但我们需要它在当前的半迁移状态下工作).我们的一名开发人员可以构建该项目,但没有其他人可以.

We have a .NET project that relies on an old VB6 OCX (The entire thing was originally VB6 and C++ and we are gradually migrating it all to .Net but we need it working in its present half-migrated state). One of our developers can build the project but no-one else can.

开发人员发现他对interop.foo.dll文件和AxInterop.foo.dll都有引用.

The developer finds that he has references to an interop.foo.dll file and an AxInterop.foo.dll, both of which exist.

我已经构建了VB6项目,并通过浏览找到了对OCX的引用到我的.NET项目副本中.现在,我引用了存在的interop.foo.dll,但是我没有对AxInterop.foo.dll的引用,并且该文件也不存在.我还遇到诸如类型'AxFoo.AxocxFoo'未定义"之类的错误,这些错误会停止项目的构建.

I have built the VB6 project and added a reference to the OCX into my copy of the .NET project by browsing to it. I now have a reference to the interop.foo.dll, which exists, but I do not have a reference to the AxInterop.foo.dll and that file does not exist either. I also have errors like "Type 'AxFoo.AxocxFoo' is not defined" which stop the project building.

我将如何生成此AxInterop.foo.dll文件并对其进行引用?我可以看到很多关于这些文件是什么的StackOverflow问题,但没有说出它们是如何生成的!

How would I go about generating this AxInterop.foo.dll file and referencing it? I can see lots of StackOverflow questions about what these files are but nothing saying how they are generated!

非常感谢,

---阿利斯泰尔(Alistair).

--- Alistair.

推荐答案

我已经解决了它:解决方案是使用aximp.exe命令行工具.

参考

有关aximp.exe的MSDN页面(Windows窗体ActiveX控件导入程序)

MSDN page about aximp.exe(Windows Forms ActiveX Control Importer)

这篇关于如何生成AxInterop文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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