2 ms·
At work, I maintain an in-house application written in Delphi/ObjectPascal. In my case I do not need anything beyond what is supplied by the environment. The U
by krylon 9y ago
At work, I maintain an in-house application written in Delphi/ObjectPascal.
In my case I do not need anything beyond what is supplied by the environment. The UI library is part of the environment, so is the database interface, ... basically, that is all the application needs.
Generally speaking, applications that basically are a UI on top of a relational database probably don't need any external libraries. And those are, uh, abundant.
Also, calling libraries written in C/C++ is possible, too.
- StillBored 9y agoI don't know about Object Pascal to C++, but calling C libraries is a no-brainier. There is a bit of a definition wrapping, and then the C library looks like a pascal one, and unlike most interpreted/JIT/GC/etc languages where the programmer or wrapper has to jump through hoops to transform the data structures to match an in memory C structure, pascal just goes ahead and uses the same datastructure. This yields a far more transparent/efficient interface. Even pascal strings degrade to C strings by skipping the size header, and assuring they are null terminated before calling the C libraries.
- pjmlp 9y agoIn Delphi is quite easy if you make use of C++ Builder, since they share parts of the tooling. With another C++ compiler on Windows, COM is a better approach. Anywhere else than the usual plain C like APIs.