可以调用从托管C托管DLL ++? [英] Possible to call a managed DLL from unmanaged C++?

查看:164
本文介绍了可以调用从托管C托管DLL ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能调用CLR的DLL(一个例子是用C#制造)从非托管C ++ code?

Is it possible to call CLR DLL (one for example which is made with C#) from unmanaged C++ code?

我需要的不是设法打电话到它在某种程度上一个DLL,甚至通过一些是建立与C ++ / CLI代理C ++程序?

I need a DLL that is not managed to call into it somehow, maybe even via some proxy C++ process that is built with C++ / CLI?

推荐答案

在CLR DLL都必须建成一个COM可见的组件。 如果你有C#的控制,这是一个简单的重建,否则,是pretty的多少不能直接使用它。

The CLR DLL would have to be built as a COM visible assembly. If you have control of the C#, it's a simple rebuild, otherwise, is pretty much impossible to use it directly.

这篇关于可以调用从托管C托管DLL ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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