|
From: Stephan M. <ste...@we...> - 2006-09-09 15:32:35
|
> I just tried to wrap libusb0.dll with ctypes' codegenerator,=20 > http://starship.python.net/crew/theller/ctypes/old/codegen.html > >python C:\Python24\Lib\site-packages\ctypes\wrap\h2xml.py usb.h -o usb= .xml -c > OK > >C:\Python24\Lib\site-packages\ctypes\wrap\xml2py.py usb.xml -l libusb0.= dll -o usb.py > which seems to go OK, mostly, but I get a zillion: >=20 > # unresolved alias: AddPrintProcessor =3D AddPrintProcessorA > # unresolved alias: VarUI2FromInt =3D VarUI2FromI4 These are symbols exported by some of Windows' system DLLs. The errors might be caused by the fact that usb.h includes windows.h and stdlib.h. Try to remove these includes from the header before running the code gener= ator. > ... > What extra header do I need to allow the script to resolve these referen= ces in the dll=3F You don't need any extra headers, just usb.h. > Is this a (also) question for ctypes-users=3F >=20 > Ray Schumacher >=20 >=20 > ------------------------------------------------------------------------= - > Using Tomcat but need to do more=3F Need to support web services, security= =3F > Get stuff done quickly with pre-integrated technology to make your job e= asier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geroni= mo > http://sel.as-us.falkag.net/sel=3Fcmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642= > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und kostenlos. Gleich testen! http://www.pc-sicherheit.web.de/freescan/=3Fmc=3D022222 |