开发者

Is .NET PInvoke available on Linux and Mac OS X platforms?

开发者 https://www.devze.com 2023-03-22 04:19 出处:网络
Platform Invokation in .NET Framework available on Windows. [DllImport(\"user32.dll\", CharSet=CharSet.Auto)]

Platform Invokation in .NET Framework available on Windows.

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern MessageBoxResult MessageBox(IntPtr hWnd, String text, String caption, int options);

Is PInvoke avail开发者_运维技巧able on Linux and Mac OS X platforms? for example for Mono project?

If Linux and Mac OS X supported PInvoke, Can you give me some example or references in your answer.

Thanks.


Interop with Native Libraries
http://www.mono-project.com/Interop_with_Native_Libraries

0

精彩评论

暂无评论...
验证码 换一张
取 消