[Ctypes-devel] Exporting Managed code as Unmanaged
Brought to you by:
theller
From: <g....@fr...> - 2003-12-14 21:17:41
|
Exporting Managed code as Unmanaged : http://www.csharphelp.com/archives3/archive500.html the following c# code is exported as an unmanaged dll with ILDASM from Net Framework SDK // HelloWorldDll.cs using System; namespace HelloWorldDll { public class HelloWorldClass { public static string SayHello(string name) { return ("Hello " + name); } } } >>> from ctypes import * >>> x = windll.HelloWorldDll >>> x.SayHello('Gerard') 1465528 >>> I can't return the string Hello Gerard Gerard |