Thomas Heller’s ctypes module is turning out to be very useful for calling strange Windows SDK APIs. Despite not having Visual Studio (marked as required by the documentation) I’ve just kind-of installed the custom gccxml used by ctypes, and am recording the steps I took to do it, before I forget how.
HKLM\SOFTWARE\Microsoft\VisualStudio\7.1, and add a new string value named “InstallDir”. Set its value to C:\Program Files\Microsoft Visual C++ Toolkit 2003 or wherever it was that you installed the C++ compiler.vc7 two directories above your Visual C++ installation. For me, this was C:\vc7.include directory to C:\vc7\include.C:\vc7\PlatforSDK\include.C:\Program Files\gccxml\install (assuming you installed gccxml to its default directory.)vcInstall . ”\Program Files\gccxml\bin”Now to find out whether or not it works enough to be usable…
Update Yes, it is usable, but gccxml seems chokes on the definition of the __nothrow macro, so I have to add -D—nothrow to the h2xml.py command line.
Update 2 Or alternatively, use the h2xml.cfg file, just like the doco says :).
Comments