Jump to content
PhilBoy

Desktop App Development with Object Pascal

Recommended Posts

Hello, I'm working on a desktop application development project(specifically a desktop simulator tool) and this simulator was developed with Object Pascal. I'm trying to understand the architecture of the simulator and improve the features of the simulator. I have very basic knowledge of OOP but I don't know what I need to learn to be able to do the task I described above. Can anyone offer a learning roadmap to be proficient enough to do the task above?

Share this post


Link to post
1 hour ago, PhilBoy said:

Hello, I'm working on a desktop application development project(specifically a desktop simulator tool) and this simulator was developed with Object Pascal. I'm trying to understand the architecture of the simulator and improve the features of the simulator. I have very basic knowledge of OOP but I don't know what I need to learn to be able to do the task I described above. Can anyone offer a learning roadmap to be proficient enough to do the task above?

You can start from here: https://lp.embarcadero.com/ObjectPascalHandbookD11?utm_source=blog

 

It is a free book from Marco Cantu. Other members of this forum may suggest you others books or resources.

 

EDIT: and of course install the community edition of Rad Studio from here (if you are eligible for it): https://www.embarcadero.com/products/delphi/starter

 

N.B: Take care about license, limitations and legal issue

Edited by DelphiUdIT

Share this post


Link to post

Just a question to @PhilBoy : you say Object Pascal, but do you know if it is in Delphi, Lazarus or an other environment ? Let's suppose it's Delphi, do you know what was the development version ?

 

The language don't differ a lot between releases, but used libraries does.

Share this post


Link to post
5 hours ago, Patrick PREMARTIN said:

Just a question to @PhilBoy : you say Object Pascal, but do you know if it is in Delphi, Lazarus or an other environment ? Let's suppose it's Delphi, do you know what was the development version ?

 

The language don't differ a lot between releases, but used libraries does.

 

Is it common to have shared code between Delphi and Lazarus? If so, what are the equivalents to c preprocessor macros like "#ifdef Delphi"?

Share this post


Link to post
58 minutes ago, Paul Dardeau said:

 

Is it common to have shared code between Delphi and Lazarus? If so, what are the equivalents to c preprocessor macros like "#ifdef Delphi"?

Normally it works the other way around... you write:

{$IFDEF FPC}
.... for FPC
{$ENDIF}
{$IFNDEF FPC}
.... for DELPHI
{$ENDIF}

or 

{$IFDEF FPC}
.... for FPC
{$ELSE}
.... for DELPHI
{$ENDIF}

 

Edited by DelphiUdIT
  • Like 2

Share this post


Link to post
17 hours ago, PhilBoy said:

Can anyone offer a learning roadmap to be proficient enough to do the task above?

Much of the roadmap should include reticulation of the system you are modeling.   Bond graphs allow cause effect, modular construction, and the relationship between the domains to be surfaced with causal strokes the bonds (effort vs flow) are drawn  .  To avoid paying 20 K to Twente sim,  I draw the system out in bound book. these drawings help in connecting sources to sinks. A book on bond graphs mentioned that eigenvalue  would be easier to understand written as characteristic wert. 🙂   

 

 

 

Delphi to Laz.    

// in lpr  was dpr
{$IFDEF FPC}
  {$MODE Delphi}// saves using specialize in generic constructs
{$ENDIF}

uses
{$IFnDEF FPC}
{$ELSE}
  Interfaces, // lets the laz work
{$ENDIF}

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×