I've known DllImport() Attribute loads the functions of just Windows DLL Files.But, When I look the source of "Tao Framework", I found this lines:GLExtensionLoader.cs -- a part of Tao Framework.// linux [DllImport("libGL.so", EntryPoint = "glXGetProcAddress")] internal static extern IntPtr glxGetProcAddress(string s); // also linux, for our ARB-y friends [DllImport("libGL.so", EntryPoint = "glXGetProcAddressARB")] internal static extern IntPtr glxGetProcAddressARB(string s); // windows [DllImport("opengl32.dll", EntryPoint = "wglGetProcAddress")] internal static extern IntPtr wglGetProcAddress(string s); // Mac osx gets complicated [DllImport("libdl.dylib", EntryPoint = "NSIsSymbolNameDefined")] internal static extern bool NSIsSymbolNameDefined(string s); [DllImport("libdl.dylib", EntryPoint = "NSLookupAndBindSymbol")] internal static extern IntPtr NSLookupAndBindSymbol(string s); [DllImport("libdl.dylib", EntryPoint = "NSAddressOfSymbol")] internal static extern IntPtr NSAddressOfSymbol(IntPtr symbol); // we can't depend on Tao.OpenGl.Gl for this [DllImport("opengl32.dll")] internal static extern IntPtr glGetString(uint name);Can DllImport() Attribute deal Other OS's Library? (like "xxxxx.so" or "xxxxx.dylib")If so, Does it mean that I can use the function of Other OS's library on Windows?(Or the function of Windows DLL can be runnable on Mac or Linux by using DllImport Attribute?) 解决方案 这篇关于是否可以使用DllImport使用其他操作系统的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 15:07