Lazarus
Free Pascal => Windows => Topic started 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:
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
-
Now the DJTSatLib.dll
-
Perhaps a {$MODE DELPHI} on top of your unit DJTSatLib_TLB ?
-
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:
DJTSatLib_TLB.pas(97,53) Error: Duplicate identifier "Period"
-
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
-
both 32bit.
Tested under W7 prof. x32 + x64.
64 bit.
Laz 1.9 Trunk 56511.
Compiles successfully and shows: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.
-
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.
-
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