Is there a way to declare external API functions (non-assembly based) called
from Python code?
e.g., in VB, you'd do something like declare the following stub:
Private Declare Function FriendlyName Lib "kernel32" Alias
"ActualAPIFunctionName"(ByVal SomeString As String) As Integer
e.g., in C#, you'd do it this way:
[System.Runtime.InteropServices.DllImport("kernel32",
EntryPoint="ActualAPIFunctionName", ExactSpelling=false,
CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true)]
private static extern int FriendlyName(string SomeString);
Or is this irrelevant in Python (and why)? I'm learning Python and I'm
continually surprised at how many things are just not even relevant in
Python (explicit types, interfaces, abstract methods, namespaces, etc....).
--
View this message in context:
http://www.nabble.com/Calling-external-API-from-IronPython-tf2313707.html#a6434143
Sent from the IronPython mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com