[Kde-bindings] playground/bindings/kimono

Arno Rehn kde-bindings at arnorehn.de
Wed Dec 7 17:47:16 UTC 2005


Am Mittwoch, 7. Dezember 2005 17:45 schrieb Richard Dale:
> On Wednesday 07 December 2005 13:58, Arno Rehn wrote:
> > Am Mittwoch, 7. Dezember 2005 10:46 schrieb Richard Dale:
> > > SVN commit 486268 by rdale:
> > >
> > > * The Qyoto 'hello world' program is working!
> > > * Added QString <--> C# string marshaller
> > > * The '_smokeObject' private instance variable is now correctly set up
> > >   when a new instance is constructed. This allows the underlying C++
> > > instance for a given C# instance to be obtained.
> > > * The static private variable 'pointerMap' inside the Smoke invocation
> > >   contains a Hash with key of C++ instance addresses which map onto the
> > >   corresponding C# instance. This allows a C# instance for a given C++
> > >   instance to be obtained. The C# instances are held as weak references
> > >   and so they won't interfere with normal garbage collection.
> > > * The first cannon game tutorial 't1' now works, so just 13 more to
> > > go..
> > >
> > > CCMAIL: kde-bindings at kde.org
> > >
> > >
> > >
> > >  M  +39 -6     SmokeInvocation.cs
> > >  M  +7 -4      makefile
> > >  M  +30 -3     qt3handlers.cpp
> > >  M  +20 -4     qt3qyoto.cpp
> > >  A             t1.cs
> > >
> > >
> > > _______________________________________________
> > > Kde-bindings mailing list
> > > Kde-bindings at kde.org
> > > https://mail.kde.org/mailman/listinfo/kde-bindings
> >
> > Just cool.
> > I uploaded the followeing file, so you just have to write in the Code
> > 'Qyoto.Init_qyoto();' and not the whole API-Declaration.
> > http://www.arnorehn.de/programming/Qyoto.cs
> > Just copy it to "/qt3qyoto" or "/qyoto".
>
> OK, I'll add that to the project.
>
> Is there a way of invoking some code on loading a package in C#? So we
> could call Qyoto_Init() automatically.
I don't think there's such a way, but we could call the method everytime a 
QApplication is constructed. Without this class being constructed no function 
in Qt will succeed, except things like QMessageBox. And if someone only wants 
a QMessageBox, he can simply call 'Qyoto_init()'.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list