[Mono-bugs] [Bug 71471][Wis] New - delegates to call cdecl native code
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 19 Jan 2005 12:36:55 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jgd@ugs.com.
http://bugzilla.ximian.com/show_bug.cgi?id=71471
--- shadow/71471 2005-01-19 12:36:55.000000000 -0500
+++ shadow/71471.tmp.950 2005-01-19 12:36:55.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 71471
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jgd@ugs.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: delegates to call cdecl native code
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Mono doesn't do delegates with the attribute to specify that if they're
+used to call native code, said code uses the C (cdecl) calling convention,
+rather than the Pascal (stdcall) calling convention that's the default for
+Microsoft C#. The syntax goes thus:
+
+ [UnmanagedFunctionPointerAttribute( CallingConvention.Cdecl)]
+ public delegate int TEST_callback_f_t(int a, int b);
+
+Steps to reproduce the problem:
+1. Try to compile code with that attribute.
+2.
+3.
+
+Actual Results:
+
+Compile failure, I presume - I was asked to submit this bug when I asked
+if Mono could do this.
+
+Expected Results:
+
+
+How often does this happen?
+
+
+Additional Information: