如何通过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.