如何通过unmanged c ++ App调用托管c ++ dll? [英] How to call managed c++ dll by unmanged c++ App?

查看:71
本文介绍了如何通过unmanged c ++ App调用托管c ++ dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的EES托管c ++ dll 有一个班级,现在我想在我的非托管c ++应用程序中调用此课程,但我不知道如何打电话。

My EES managed c++ dll  have a class ,now i want to call this class in my unmanaged c++ app,but i don't know how to call .

Microsoft提供示例
http://support.microsoft.com/kb/828736/he,但
dll是c#语言。

Microsoft give the sample http://support.microsoft.com/kb/828736/he, but the dll is c# language.

谁可以帮助我?坦克! 

Who can help me?Tanks! 

推荐答案

.Net中没有C#DLL这样的东西。您可以使用任何.Net语言引用任何.Net DLL,包括C#,托管C ++或VB .Net。

There is no such thing as a C# DLL in .Net. You can reference any .Net DLL in any .Net language, including C#, managed C++ or VB .Net.

您提供的链接显示了正确的方法。

The link you provided shows the proper way to do it.

请注意,这实际上是您应该在通用.Net论坛上进行的讨论,因为它似乎不涉及与Expression Encoder特别相关的任何内容。

Please note that this is really a discussion you should have on a generic .Net forum, as it doesn't seem to involve anything specifically related to Expression Encoder.


这篇关于如何通过unmanged c ++ App调用托管c ++ dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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