[IronPython] Calling Win32 API in IronPython
quantufinity at hotmail.com
Thu Apr 27 17:25:55 PDT 2006
I was actually thinking of doing just that but I thought that there could be
an easy way.
Again thanks for the information. Hope IronPython will progess and become
one of the best scripting languages for .Net platform.
>From: Dino Viehland <dinov at exchange.microsoft.com>
>Reply-To: Discussion of IronPython <users at lists.ironpython.com>
>To: Discussion of IronPython <users at lists.ironpython.com>
>Subject: Re: [IronPython] Calling Win32 API in IronPython
>Date: Thu, 27 Apr 2006 15:34:17 -0700
>Unfortunately we don't have a good way for you to do this directly from
>Python right now. I've opened a bug to track it as a future feature
>request, but I don't know when we'd get around to this.
>As a work around you could write a C# stub that interops w/ Win32 via
>DllImport (if you go this route be sure to check out http://pinvoke.net to
>see if they've got the signatures for your API already). Then you can just
>compile this and use that stub directly from IronPython:
>from MyDllsNameSpace import *
>and you have the wrapper types available to you to use from Python.
>Do you want to help develop Dynamic languages on CLR?
>From: users-bounces at lists.ironpython.com
>[mailto:users-bounces at lists.ironpython.com] On Behalf Of Quantum Infinity
>Sent: Thursday, April 27, 2006 2:06 PM
>To: users at lists.ironpython.com
>Subject: [IronPython] Calling Win32 API in IronPython
>This is my first post here and I hope this question was not asked before.
>Anyway, is there any way to call a Win32 API in IronPython? I was trying to
>search Google along the lines of DllImport and DLLImportAttribute but I
>could not find and working example. I also tried to use the samples from
>but I couldn't make it to work in IronPython.
>In CPython, i can use CTypes and call Win32 API but I just am really lost
>Dont just search. Find. Check out the new MSN Search!
>users mailing list
>users at lists.ironpython.com
FREE pop-up blocking with the new MSN Toolbar get it now!
More information about the users