* * *

Author Topic: [Fixed] Error: expected ], but '{B670A922-E488-11D4-...'} found  (Read 2223 times)

sstvmaster

  • New member
  • *
  • Posts: 8
[Fixed] Error: expected ], but '{B670A922-E488-11D4-...'} found
« 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
« Last Edit: November 28, 2017, 01:48:09 pm by sstvmaster »
Lazarus 1.9.0 Trunk
Lazarus 1.8.4
Windows 7 32/64

sstvmaster

  • New member
  • *
  • Posts: 8
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #1 on: November 25, 2017, 10:04:43 pm »
Now the DJTSatLib.dll
Lazarus 1.9.0 Trunk
Lazarus 1.8.4
Windows 7 32/64

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #2 on: November 26, 2017, 02:22:21 am »
Perhaps a {$MODE DELPHI} on top of your unit DJTSatLib_TLB ?

ASerge

  • Hero Member
  • *****
  • Posts: 862
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #3 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"

sstvmaster

  • New member
  • *
  • Posts: 8
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #4 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
Lazarus 1.9.0 Trunk
Lazarus 1.8.4
Windows 7 32/64

ASerge

  • Hero Member
  • *****
  • Posts: 862
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #5 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.

wp

  • Hero Member
  • *****
  • Posts: 4815
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #6 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.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

sstvmaster

  • New member
  • *
  • Posts: 8
Re: Error: expected ], but '{B670A922-E488-11D4-...'} found
« Reply #7 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
Lazarus 1.9.0 Trunk
Lazarus 1.8.4
Windows 7 32/64

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus