Overloading

Steve Hanawalt stevehanawalt at yahoo.com
Fri Jun 20 19:46:49 EDT 2003


I am trying to make a DLL accessible to python using Pyrex, but I've
run into a problem with overloading.  Do you have any suggestions on
how to declare the following in Pyrex?

typedef struct _OVERLAPPED {
    ULONG_PTR Internal;
    ULONG_PTR InternalHigh;
    union {
        struct {
            DWORD Offset;
            DWORD OffsetHigh;
        };

        PVOID Pointer;
    };

    HANDLE  hEvent;
} OVERLAPPED, *LPOVERLAPPED;


I know Mark Hammond has managed to do it somehow using SWIG in is
Win32all, but I really don't want to reinvent the wheel.  I'm open to
any suggestions you might have.

Thank you,
Steve




More information about the Python-list mailing list