可以使用C ++ / CLI来从本地C ++应用程序调用.Net代码吗? [英] Can C++/CLI be used to call .Net code from native C++ applications?
本文介绍了可以使用C ++ / CLI来从本地C ++应用程序调用.Net代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用C ++ / CLI做了相反的操作(从.Net调用纯C ++代码)是我的native-> c ++ / cli方向吗?
我真的不想使用COM interop ...
解决方案
您随时可以托管CLR 。
I've done the other way around (Calling pure C++ code from .Net) with C++/CLI and it worked (for the most part).
How is the native->c++/cli direction done?
I really don't want to use COM interop...
解决方案
You can always host the CLR in your native app.
这篇关于可以使用C ++ / CLI来从本地C ++应用程序调用.Net代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文