[python-win32] The VARIANT type is not supported for SAFEARRAYS

2005-06-24 Thread Gijs Korremans
Hi, >From a COM object (written in c++) I receive a struct: unsigned shord (2 bytes) BYTE (6 bytes) BYTE (512 bytes) I can use the first two in python, but when I try to acces the last on with python( i.e. test = struct.longbyte), Python stops doing anything and when I debug the code in boa con

[python-win32] The VARIANT type is not supported for SAFEARRAYS

2005-06-21 Thread Gijs Korremans
Hi, >From a COM object (written in c++) I receive a struct: unsigned shord (2 bytes) BYTE (6 bytes) BYTE (512 bytes) I can use the first two in python, but when I try to acces the last on with python( i.e. test = struct.longbyte), Python stops doing anything and when I debug the code in boa con

[python-win32] com object gives a pointer to a C++ struct array back

2005-06-06 Thread Gijs Korremans
Hi one of the functions in a com object I have to use gives me a pointer to the firtst struct in an array back. With Python it's possible to use the first truct, but is it possible to use the others as well? //for example: PointerToFirstStruct = comObj.GetPackets() argOne = PointerToFirstStruct

[python-win32] return pramater in com object function

2005-06-02 Thread Gijs Korremans
Hi, One of the functions in the com object I need to use has a pointer in one of it's functions (object.function(string input, struct * output)) (I've created the struct with win32com.client.Record("structure", object)) I've tried to use the id() function but then Python gives me a message that