[PyKDE] Basic SIP question

2002-05-02 Thread Bjorn Pettersen
I'm a complete newbie to SIP, so please feel free to direct me to any FAQs, documents etc. that I have missed. I'm trying to wrap a very basic class: class Foo { int var; public: void setVar(int v); int getVar(); }; with the following .sip file class Foo { %HeaderCode

[PyKDE] import libsip problems

2002-05-06 Thread Bjorn Pettersen
I'm sure I'm doing something really stupid, but I can't figure out what... I built libsip_d.dll without the Qt extensions, removing the -DNO_DEBUG option, and adding /Zi. D:\siptest\sipCellpython_d Adding parser accelerators ... Done. Python 2.2.1 (#34, May 3 2002, 11:03:11) [MSC 32 bit

[PyKDE] properties in SIP

2002-05-07 Thread Bjorn Pettersen
Is there a way to do Python 2.2 properties with SIP (or read-only attributes in general)? -- bjorn ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde

[PyKDE] SIP 3.2.3 on windows

2002-05-14 Thread Bjorn Pettersen
I'm having problems with the SIP generated code on windows. The generated code looks like (.h): extern SIP_MODULE_EXTERN char sipName_NrxDataTypes_findMostRecentScoringInstance[]; extern SIP_MODULE_EXTERN char sipName_NrxDataTypes_getNarexOwnerId[]; extern SIP_MODULE_EXTERN char

[PyKDE] SIP: Module initialization code?

2002-05-14 Thread Bjorn Pettersen
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). -- bjorn ___

RE: [PyKDE] SIP: Module initialization code?

2002-05-15 Thread Bjorn Pettersen
From: Phil Thompson [mailto:[EMAIL PROTECTED]] 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

RE: [PyKDE] embedding SIP wrapped library...

2002-05-29 Thread Bjorn Pettersen
From: Bjorn Pettersen I hate to reply to myself... I'm trying to embed Python, which is working nicely, however I also want to access objects from my SIP wrapped library from Python. I tried the following code: int main() { Py_Initialize(); Here I need to let Python load