|
From: RayS <ra...@bl...> - 2006-09-09 17:18:59
|
Thanks Stephan, I'll give it another try Monday. Ray At 08:32 AM 9/9/2006, you wrote: > > I just tried to wrap libusb0.dll with ctypes' codegenerator, > > 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: > > > > # unresolved alias: AddPrintProcessor = AddPrintProcessorA > > # unresolved alias: VarUI2FromInt = 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 >generator. > > > ... > > What extra header do I need to allow the script to resolve these > references in the dll? > >You don't need any extra headers, just usb.h. |