我想知道c#加载项如何通过托管api从c ++应用程序访问数据/窗口 [英] I want to know how a c# add-in can access data/windows from the c++ application through a managed api
本文介绍了我想知道c#加载项如何通过托管api从c ++应用程序访问数据/窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个c ++应用程序,我想添加加载项。我听说.Net库有加载项管理器,可以帮助轻松创建加载项。我想知道如何在C#中创建一个可以在我的c ++应用程序中使用的加载项。
我尝试过:
我不知道如何创建加载项管理器
I have a c++ application to which I wanted to add add-in. I heard .Net library has got add-in manager which helps in creating the add-in easily. I wanted to know how do I create an add-in in C# which can be used in my c++ application.
What I have tried:
I have no clue how to create an add-in manager
推荐答案
如果你的C ++应用程序不支持加载项,你的项目已经死了。
加载项管理器用于为你的.NET应用程序添加加载项想要添加加载项支持。它不会让你能够为任何应用程序添加加载项。
你必须使用该应用程序公开的加载项框架,如果有的话。
现在,你的C ++应用程序是否公开了这个功能?以及如何?
If your C++ application does not support add-ins, your project is already dead in the water.
The add-in manager is for adding add-ins to your .NET applications that you want to add add-in support to. It does NOT give you the ability to add add-ins to just any application.
You have to use the framework for add-ins that the application exposes, if any.
Now, does your C++ application expose this functionality? And how?
.net平台的一个优点是互操作性,因为常见的内存布局。看看我的文章致电所有电台,看看它是如何工作的。
如果你真的需要一个加载项而不是从 Microsoft 并按照示例链接进行操作。
提示:这是一个复杂的问题,也许你会更好避免它。
One advantage of the .net platform is interoperability, because of the common memory layout. Take a look at my article Calling all stations to see how it works.
If you really need a add-in than read this site fromMicrosoft and follows the links to the samples.
Tip: it is a complex issue and maybe you are better of in avoiding it.
这篇关于我想知道c#加载项如何通过托管api从c ++应用程序访问数据/窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文