我的Interop出了什么问题? [英] What is wrong with my Interop?
问题描述
我正在构建一个来自C ++ DLL的互操作,以便从ac#solution作为参考库使用。
I am building an interop from C++ DLL for the use from a c# solution as reference library.
I我正在使用Visual Studio 2017。
I am using visual studio 2017.
解决方案使用.Net framewrok 4.5.2。
The solution uses .Net framewrok 4.5.2.
我目前有一个带有特定文件版本的工作c ++ dll和我使用没有版本的tlbimp.exe创建的匹配互操作,这对我来说没问题。
I currently have a working c++ dll with a certain file version and a matching interop I created using tlbimp.exe with no version and this works OK for me.
事情是 - 我现在想要更新c ++ DLL文件版本并创建一个新的互操作但是一旦我这样做(Interop是用文件版本生成还是不生成),解决方案使用新的互操作编译好,但是当我运行
时,应用程序无法访问它。
The thing is - I now want to update the c++ DLL file version and create a new interop but once I do that (whether the Interop is being generated with file version and whether it isn't ) the solution compiles ok using the new interop but when I run the application It cannot reach it.
推荐答案
问题是 - 我现在想要更新c ++ DLL文件版本并创建一个新的互操作,但是一旦我这样做(是否使用文件版本生成Interop,是否不是)解决方案组合物1可以使用新的互操作但是当我运行应用程序时
它无法达到它。
The thing is - I now want to update the c++ DLL file version and create a new interop but once I do that (whether the Interop is being generated with file version and whether it isn't ) the solution compiles ok using the new interop but when I run the application It cannot reach it.
究竟是什么意思"无法达到"<
Exactly what do you mean by "cannot reach it"?
这篇关于我的Interop出了什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!