[PyKDE] SIP: Module initialization code?
Phil Thompson
phil at river-bank.demon.co.uk
Wed May 15 11:01:01 BST 2002
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
More information about the PyQt
mailing list