[PyKDE] SIP: Module initialization code?
Bjorn Pettersen
BPettersen at narex.com
Wed May 15 19:54:00 BST 2002
> From: Phil Thompson [mailto:phil at river-bank.demon.co.uk]
>
> 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.
Thanks. That works great.
-- bjorn
More information about the PyQt
mailing list