On 06/13/02 Adiraj, Sarat wrote:
> [DllImport("user32")]
> public static extern int MessageBoxA(int hWnd,
> String pText ,
> String pCaption ,
> int uType);
What is the signature of the MessageBoxA() function in C code?
There may be two issues:
1) we currently marshal strings as utf8 char*. MessageBoxA() for all I
know may want UTF-16 (though I guess the 'A' is for ASCII?).
2) The call convention: we call the P/Invoke function with th cdecl call
convention by default. It may be that MessageBoxA() uses another
convention.
You could try to run the code with the ms runtime and check if it works
there.
lupus
--
-----------------------------------------------------------------
[EMAIL PROTECTED] debian/rules
[EMAIL PROTECTED] Monkeys do it better
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list