On 30 Aug 00, at 7:42, Menno Schaap wrote:
Hello Chief,
The program I (maybe) have to write an interface for, is written in such a way, that no direct graphical calls (to xlib, qt, or gtk) are done in the pascal program. In the program, there are only calls to a graphical sublayer (own design). The reason for this is that now only the graphical layer has to be rewritten, and the port to an other operating system is finished. Ofcourse the operating system needs a Pascal compiler (in this case extended pascal).
Well you are in luck. GPC is such a compiler, and it is available on many platforms. You mentioned earlier some minor compatibility problems with Prospero EP. You might want to provide details of these to Peter, to see if he can do anything about it.
This approach also means that this layer does not need to be written in Pascal. Since QT is mainly designed for C++, and GTK+ mainly for c / obj-c, it is as far as I can see easier to write in C/C++. Personally I also prefer to write in C++, since it's OOP structure is IMO superior to a procedural approach.
The advantage of Gtk, AFAICS is that the libraries can be linked directly with GPC programs, without any fuss. This becomes significant when you are thinking of possibly porting your application to other platforms apart from the one that you currently have in mind. There is of course nothing stopping anyone from providing OOP wrappers (either in C++ or Pascal) for the Gtk functions.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro v5.22.1 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com