Bjorn Pettersen wrote: > > I'm trying to wrap a library that calls into ADO. ADO being a COM thing, > needs to have > > CoInitialize(NULL); > > called before any other calls... Is there anywhere convenient to put > this code? (I couldn't find an example of this in PyQT).
Any code in a %PostInitialisationC++Code ... %End block will be copied to the end of the function that implements the module's sipRegisterClasses function. If this is too late for your needs then I can add a corresponding %PreInitialisation block that gets copied to the start of the function that implements the module's sipInitModule function. Phil _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
