[Mono-list] DllImport behaves different between .Net and Mono

Robert Jordan robertj at gmx.net
Fri Jul 27 13:14:25 EDT 2007


Andreia Gaita wrote:
> There is a lot of code in mono itself that imports windows-specific
> dlls to interact with the system, and it has no problems doing so with
> the dll name. Please refer to

Indeed, but it interacts with system dlls or with dlls taken out
of mono's bin directory. Those kind p/invokes are working.

Not working are dlls pinvoked out of the main assembly's directory,
like in the attached test case, when the assembly is invoked
like this:

	cd ..
	mono pinvoke/pinvoke.exe


Robert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinvoke-test.zip
Type: application/x-zip-compressed
Size: 1101 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070727/69189a2f/attachment.bin 


More information about the Mono-list mailing list