Lazarus

Free Pascal => Windows => Topic started by: sstvmaster on November 25, 2017, 10:02:33 pm

Title: [Fixed] Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: sstvmaster on November 25, 2017, 10:02:33 pm
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:
Quote
DJTSatLib_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
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: sstvmaster on November 25, 2017, 10:04:43 pm
Now the DJTSatLib.dll
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: molly on November 26, 2017, 02:22:21 am
Perhaps a {$MODE DELPHI} on top of your unit DJTSatLib_TLB ?
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: ASerge on November 26, 2017, 08:32:01 am
Perhaps 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:
Quote
DJTSatLib_TLB.pas(97,53) Error: Duplicate identifier "Period"
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: sstvmaster on November 27, 2017, 07:23:41 pm
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
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: ASerge on November 27, 2017, 11:03:04 pm
both 32bit.
Tested under W7 prof. x32 + x64.
64 bit.
Laz 1.9 Trunk 56511.
Compiles successfully and shows:
Quote
Compile 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 Project1
Tested on Lazarus, built using fpc 3.0.4 and fpc 3.1.1 (trunc 37629). Both x64.
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: wp on November 27, 2017, 11:42:39 pm
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.
Title: Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
Post by: sstvmaster on November 28, 2017, 01:47:39 pm
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
TinyPortal © 2005-2018