Jump to content

Giorgi Chapidze

Members
  • Content Count

    13
  • Joined

  • Last visited

Posts posted by Giorgi Chapidze


  1. 1 hour ago, Der schöne Günther said:

    There is plenty of examples on how to do this with Delphi, you already got the correct term: It's (inter-process) communication (IPC) via "pipes".

     

    I'd recommend to start a bit more humble by making a small console app by yourself that will, for example, take two numbers from the input, and return the sum of these two numbers. Then, try sending these two numbers to your console app and getting the result back. If that works, you can do that with your free pascal compiler.

     

    By the way: Cmd.exe is nothing more than a front-end that just does what your application wants to do. You don't need to "connect" to a cmd.exe. You will directly launch and communicate with your free pascal compiler.

    Thanks for repsonse!   Frankly, I was not able to find examples on this topic, maybe because I am new to Delphi and using the wrong terms. Is linking a different thing? Anyways, if you have time, can you send me material on that?


  2. Hi!   

    I am developing a simple editor application in which you can type Pascal code and click the compile button, which will connect cmd.exe in the background and compile a .pas file via freepascalcompiler.

     

    I have two separate TMemo components. one for writing source code and a second read-only component for showing compilation messages.

     

    To sum up, I want to execute the "fpc file_name. pas" command in the background and then grab the compiled messages and display them on the UI.

     

    How can I achieve such behavior?

    https://github.com/gchapidze/fmx-pascalIDE

     


  3. Thank you all for your time and responses. I have taken notes on David's response, and I will set these things as TODOs in my free time. I have understood the pointers and implemented LinkedList and BST from scratch(thanks to Anders)... So as I understood, pointers are not used that much and references are used for higher level abstraction, as in Java? I am currently studying compiler design at the university and am going to build a simple one in Delphi.

    By the way, can anyone suggest material on assembly in Delphi? Is it pure X64 assembly or sort of dialect, specific to Delphi?


  4. 14 hours ago, Patrick PREMARTIN said:

    Kevin Bond's book is a progressive course used in schools in South Africa. It has a progressive approach with lots of examples.

     

    It was used for last summer learning Delphi bootcamp : 

     

    Does the book mentioned cover all essential topics for going from a beginner to an advanced level? Which one would you buy from the two if needed?


  5. Hi! I read 200 pages of Marco Cantu's book on Delphi, which may be good for a particular reader, but for beginners, IMO, it lacks in-depth explanations and only skims a topic a bit.  Anyways, I am interested in the book How to Program Effectively in Delphi for AS/A Level Computer Science by Dr. Kevin Bond. Is it a good book for beginners?

     

     

    NewOPHCover.png

    81Ve47SgCyL._AC_UF1000,1000_QL80_.jpg


  6. 1 hour ago, Stefan Glienke said:

    CE does not have working command line compilers afaik so you have to manually install:

    - open <your-spring4d-dir>\Packages\Delphi10Sydney\Spring4D.groupproj

    - build the project group (unit tests might not compile as they require TestInsight - does not matter to you)

    - add <your-spring4d-dir>\Library\Delphi10Sydney\<platform>\<config> directory to the library path (Tools->Options... then Language->Delphi->Library (select the platform at the top and then "..." next to the Library path

    By the way, you are the lead for Spring4d, right? I am curious if you are working on the new release. I am fond of your project, and if I had expertise, it would be an honor to contribute to it. Thanks for your work.

    • Like 1

  7. Hi! I have followed the installation manual for Spring4d. Cloned the repository and ran the build.exe, without running tests, with the Update Registry option checked.

    Units and classes are definitely indexed because I can go to them with ctrl + click, but I am getting these weird errors:

    1) Could not compile unit Spring

    2) File not found Spring.inc .

     

    How can I solve it?

     

    Screenshot (7).png

    Screenshot (8).png

×