在VC6.0中使用由2010VS开发的dll [英] Using dll developed by 2010VS in VC6.0
问题描述
我有一个问题,是否可以在VC6.0中使用VS2010开发的dll中的公开方法?如何使用?如果方法进一步调用托管函数怎么办?
有关更多详细信息,我通过阅读以下文章来调用非托管代码中的托管函数(http://www.codeproject.com/Answers/608970/UnmanagedpluscodepluscallplusManagedpluscode来自:Ron Beyer从非托管代码中调用托管代码,反之亦然,关于CodeProject的文章).现在我想在VC6.0中使用它,它可以工作还是这些其他方法?
非常感谢!
I have a question, if I can Using the exposed methods in dll developed by VS2010 in VC6.0 and how? What if the methods call managed function further?
For more details, I call managed function in unmanaged code by reading the article (http://www.codeproject.com/Answers/608970/UnmanagedpluscodepluscallplusManagedpluscode From: Ron Beyer Calling Managed Code from Unmanaged Code and vice-versa Article on CodeProject) .Now I want to use this in VC6.0, Can it work or is these another way?
Thanks a lot!
推荐答案
您可以使用P/Invoke来实现:
http://en.wikipedia.org/wiki/Platform_Invocation_Services [ http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp [^ ].
此CodeProject文章也可能有用: http://www.codeproject.com/csharp/EssentialPInvoke.asp [ ^ ].
—SA
You can do it using P/Invoke:
http://en.wikipedia.org/wiki/Platform_Invocation_Services[^],
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp[^].
This CodeProject article can also be useful: http://www.codeproject.com/csharp/EssentialPInvoke.asp[^].
—SA
这篇关于在VC6.0中使用由2010VS开发的dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!