[Mono-osx] DllImport method doesn't work on Mac under MONO

Stifu stifu at free.fr
Sat Aug 28 14:09:12 EDT 2010



Mephisto wrote:
> 
> It's very strange that the same code works under MONO Framework on Windows
> machine, and returns
> errors under MONO Framework on Mac machine.
> 
Since it's a native call, it's not very strange at all. You can't run native
Windows code on a Mac.
You have to ensure you have a Mac native equivalent of the Windows DLL.
Also, in case you were doing it, do not specify ".dll" when calling the
file, so that the Mono framework can call the file with the right extension
for the current OS.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/DllImport-method-doesn-t-work-on-Mac-under-MONO-tp2374790p2383224.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list