是否已将任何内容添加到.Net 4.0以支持“反向P/调用"?场景? [英] Has anything been added to .Net 4.0 to support "Reverse P/Invoke" scenarios?

查看:72
本文介绍了是否已将任何内容添加到.Net 4.0以支持“反向P/调用"?场景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为非托管主机创建托管插件.这是针对音乐应用程序,它使用完善的本机VST规范.我创建了一个后编译实用程序,用于反编译托管DLL并查找具有特殊属性的方法 添加了信号,指示应将其导出为本地函数.这是一个示例:

I am creating a managed plugin for an unmanaged host. This is for a music application, and it uses the well-established native VST spec. I have created a post-build utility that decompiles a managed DLL and looks for methods that have a special attribute added that signals that it should be exported as a native function. Here is an example: 

 

[DllExport("main", CallingConvention.Cdecl)]
public static IntPtr VSTChordsPlugin(IntPtr hostCallback)
{
 ...
}

推荐答案

大声笑,我想那不是一个大问题.感谢您清理它!
LOL, I guess that is a big fat NO then. Thanks for clearing it up!


这篇关于是否已将任何内容添加到.Net 4.0以支持“反向P/调用"?场景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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