[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/doc c_users_guide.html,1.1,1.2
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/doc c_users_guide.html,1.1,1.2 |
Date: |
Wed, 25 Jun 2003 09:03:36 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/doc
In directory subversions:/tmp/cvs-serv11235/doc
Modified Files:
c_users_guide.html
Log Message:
Introduce some new syntax to make it easier to call C code from C#.
Index: c_users_guide.html
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/doc/c_users_guide.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** c_users_guide.html 10 Aug 2002 06:03:26 -0000 1.1
--- c_users_guide.html 25 Jun 2003 13:03:34 -0000 1.2
***************
*** 278,284 ****
<h3>3.5. Calling C# code</h3>
! TODO
! <h3>3.6. Weak and strong aliases</h3>
TODO
--- 278,317 ----
<h3>3.5. Calling C# code</h3>
! The easist way to call C# code from C is to create a "<code>__module</code>"
! declaration within the C# application:
! <blockquote><pre>__module
! {
! public static void cs_func()
! {
! ...
! }
!
! }</pre></blockquote><p>
!
! The "<code>cs_func</code>" method will be visible to the C code as a
! regular function.<p>
!
! TODO: using "<code>__invoke__</code>".<p>
!
! TODO: deprecate "<code>__module</code>" and replace with
! "<code>System.Runtime.CompilerServices.CompilerGlobalScopeAttribute</code>",
! which is more correct standards-wise.<p>
!
! <h3>3.6. Calling C code</h3>
!
! To call C code from C#, you must declare the the C function in your
! C# application:<p>
!
! <blockquote><pre>__module
! {
! extern public static void c_func();
!
! }</pre></blockquote><p>
!
! where "<code>c_func</code>" is a function declared in your C code.
! Use "<code>__module.c_func()</code>" to call the function from C#.<p>
!
! <h3>3.7. Weak and strong aliases</h3>
TODO
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/doc c_users_guide.html,1.1,1.2,
Rhys Weatherley <address@hidden> <=