Re: Qt4, Windows, and Euphoria
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Jul 05, 2005
- 549 views
Vincent wrote: > > > Travis Beaty wrote: > > > 2. Nice Interface codewise. In terms of coding in C++ (Qt's native > > language), the code is very clean, without the infernal need for casting > > (as with GTK). The tools which are used with Qt, such as moc and uic, > > just make it that much nicer. Such methods as QObject::inherits() makes > > it easier to marry C++'s RTTI facilities with Euphoria's typechecking > > system. > > How does one go about wrapping Object Oriented C++ libraries with Euphoria? It > can > be done, Matt has demonstrated that with wxEuphoria. But I just dont > understand how. > Is there some interfacing library? > > If there is a C++ interfacing Euphoria library. I would like to have it in my > library >> There is a file included with wxEuphoria called cplusplus.e. It does some things to help when dealing with C++. Ultimately, it's not that different from dealing with C. The biggest difference is that you have to be able to handle the name mangling. You also have to remember to explicitly pass a pointer to the object (most compilers just add it as the first parameter list, MSVC uses a different calling convention). Also, EuCOM is effectively using C++. Matt Lewis