>> Have you tried to pass the structure by reference?
>>
>> dso_lib.port_init(byref(init_data))
> 
> That gives me another exeption:
> 
>     print dso_lib.port_init(byref(init_data))
> ValueError: Procedure called with not enough arguments (4 bytes missing) or 
> wrong calling convention

Please try using 'windll' instead of 'cdll' to load the library; then call 
'dso_lib.port_init(byref(init_data))'.

Thomas

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to