2002-07-19 Martin Baulig <martin@gnome.org>
[mono.git] / mcs / tests / test-50.cs
index 1d629499c95fbb17156f9e04de2b3954c3037eeb..84636e887ffd637bededd24bf3ba6e06cd629012 100644 (file)
@@ -3,12 +3,12 @@ using System.Runtime.InteropServices;
 \r
 public class Blah {\r
 \r
-       [DllImport ("user32")]\r
+       [DllImport ("user32", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Auto)]\r
        public static extern int MessageBox (int hWnd, string pText, string pCaption, int uType);\r
 \r
        public static int Main ()\r
        {\r
-               MessageBox (0, "Hello World !", "PInvoke Test", 0);\r
+               MessageBox (0, "Hello from Mono !", "PInvoke Test", 0);\r
 \r
                return 0;\r
        }\r