Re: [Python.NET] Getting an open Python file handle into CLR
Jeffrey Bush <jeff-dLGc3k/[email protected]>
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CALOUSf=GB1jag_Nia5m6N9hJFidBHs3ivPSf2VQCabancF1RBA@mail.gmail.com> |
As I said in my message, you can using IntPtr.Overloads[Int64](handle). Jeff On Tue, Jul 21, 2015 at 11:12 AM, Dan Lenski <[email protected]> wrote: > Ron Harding via PythonDotNet <pythondotnet@...> writes: > > > perhaps re-directed command line calls for stdin, stdout, stderr in c# > interacting with python i/o command line calls(although in python it is > common practice to daisy chain commands). > > Unfortunately, I cannot redirect the output of the C# library to a > convenient filehandle like stdout/stderr; I need to be specify a > FileStream object. > > It pretty much comes down to this: how do I cast a win32 file handle to an > IntPtr? > > Thanks, > Dan > > _________________________________________________ > Python.NET mailing list - [email protected] > https://mail.python.org/mailman/listinfo/pythondotnet > _________________________________________________ Python.NET mailing list - [email protected] https://mail.python.org/mailman/listinfo/pythondotnet