[Fixed] Error: expected ], but '{B670A922-E488-11D4-...'} found lazarus / 67-Windows ---------------------------------------------------------------------- sstvmaster · 2017-11-25 21:02 Hello, I downloaded from here http://www.satsignal.eu/software/wxtrack.htm#SGP4 the this file: http://www.satsignal.eu/software/SGP4comp360.zip When I start a new project and I want to use the unit DJTSatLib_TLB into the uses and create an event (onCreate) I get the following message: QuoteDJTSatLib_TLB.pas(120,6) Error: expected ], but '{B670A922-E488-11D4-ADE9-00A0CC5AA94A}' found In preparation, the DJTSatLib.dll needs to be registered with regsvr32, which worked well. As an attachment, I attached the project with dll and so on. Can anyone help me please? Rgr Maik ---------------------------------------------------------------------- sstvmaster · 2017-11-25 21:04 Now the DJTSatLib.dll ---------------------------------------------------------------------- molly · 2017-11-26 01:22 Perhaps a {$MODE DELPHI} on top of your unit DJTSatLib_TLB ? ---------------------------------------------------------------------- ASerge · 2017-11-26 07:32 Quote from: molly on November 26, 2017, 02:22:21 amPerhaps a {$MODE DELPHI} on top of your unit DJTSatLib_TLB ? It's true. With this switch, the compiler displays only hints and warning. With {$MODE OBJFPC} many errors like this: QuoteDJTSatLib_TLB.pas(97,53) Error: Duplicate identifier "Period" ---------------------------------------------------------------------- sstvmaster · 2017-11-27 18:23 So now once again. Laz 1.8 RC5: no errors Laz 1.9 Trunk 56511: The error as described. both 32bit. Tested under W7 prof. x32 + x64. I'm thinking that is a bug. Thank you all. Maik ---------------------------------------------------------------------- ASerge · 2017-11-27 22:03 Quote from: sstvmaster on November 27, 2017, 07:23:41 pmboth 32bit. Tested under W7 prof. x32 + x64. 64 bit. Laz 1.9 Trunk 56511. Compiles successfully and shows:QuoteCompile Project, Mode: Debug, Target: ....\project1.exe: Success, Warnings: 1, Hints: 4 DJTSatLib_TLB.pas(175,46) Warning: Implicit string type conversion from "AnsiString" to "WideString" DJTSatLib_TLB.pas(29,15) Hint: Unit "ActiveX" not used in DJTSatLib_TLB DJTSatLib_TLB.pas(29,43) Hint: Unit "OleServer" not used in DJTSatLib_TLB DJTSatLib_TLB.pas(29,54) Hint: Unit "ole2" not used in DJTSatLib_TLB project1.lpr(10,17) Hint: Unit "DJTSatLib_TLB" not used in Project1Tested on Lazarus, built using fpc 3.0.4 and fpc 3.1.1 (trunc 37629). Both x64. ---------------------------------------------------------------------- wp · 2017-11-27 22:42 The error in trying to create an event handler if the TLB is used occurs for the first time in r56402. Please write a bugreport and refer to this revision. ---------------------------------------------------------------------- sstvmaster · 2017-11-28 12:47 Hi @ all, special thanks to wp for help!!! Problem is fixed since Laz 1.9 SVN r56520 see: https://bugs.freepascal.org/view.php?id=32742 Maik