Ghostscript-API-Wrapper icon indicating copy to clipboard operation
Ghostscript-API-Wrapper copied to clipboard

Mode in Lazarus missing

Open CCRDude opened this issue 1 year ago • 1 comments

Situation: opened Lazarus demo

Expected: Demo compiles

Experienced: event handler assignment causes issue (in ObjFPC, it would have to be := @methodname, not just := methodname).

Solution: add {$MODE Delphi} right after header to Main.pas.

CCRDude avatar Nov 22 '24 11:11 CCRDude

diff --git "a/Examples/Lazarus/Main.pas" "b/Examples/Lazarus/Main.pas"
index e754ce0..87cc9b4 100644
--- "a/Examples/Lazarus/Main.pas"
+++ "b/Examples/Lazarus/Main.pas"
@@ -25,6 +25,8 @@
 {                                                                              }
 {******************************************************************************}
 
+{$MODE Delphi}
+
 unit Main;
 
 interface

CCRDude avatar Nov 22 '24 11:11 CCRDude