ctypes: Problems using Windows-DLL from VB example code

Noralf Trønnes notro at tronnes.org
Wed May 9 13:46:38 EDT 2007


> Have you tried to pass the structure by reference?
>
> dso_lib.port_init(byref(init_data))
>
> Thomas
>

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

Noralf. 





More information about the Python-list mailing list