Hi all!
This message asks about writing bindings for a library which is written in C++.
I have to write an X-Windows application. I have never done this, but have read about various widgets. The most exciting commentares I read about were about QT from TrollTech. Its written in C++ (I love objects) and there are also quite a bit examples on the net. Of course I would love to write the app in GPC, too. Now my question :
Would it be possible to just translate the header files to units and simple compile the program? I.e. something like
$> cat test_app.pas programm test_app;
uses qtmain;
...body
end.
$> gpc test_app.pas -lqt $> test_app
Do the mechanisms of polymorphie, inheritance etc work between a library written in C++ and an unit written in GPC?
I consider this a topic almost as critic as the writing of bindings for a library written in plain C.
Hans