Skip to content

Delphi: MapWinGIS_TLB.pas doesn't compile #212

Open

Description

@oldwired

MapWinGIS_TLB.pas doesn't compile under Delphi (10.4.2, but should be a general problem.

[dcc32 Error] MapWinGIS_TLB.pas(16332): E2029 ';' expected but '.' found
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2003 Undeclared identifier: 'DefaultInterface'
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2066 Missing operator or semicolon
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2003 Undeclared identifier: 'yLatitude'
[dcc32 Error] MapWinGIS_TLB.pas(16334): E2003 Undeclared identifier: 'xLongitude'
[dcc32 Error] MapWinGIS_TLB.pas(9869): E2065 Unsatisfied forward or external declaration: 'TMap.SetLatitudeLongitude'
[dcc32 Fatal Error] Unit1.pas(7): F2063 Could not compile used unit 'MapWinGIS_TLB.pas'
Failed
Elapsed time: 00:00:00.2

If you look at MapWinGIS_TLB:16332 you can see that
procedure TmwMap.SetLatitudeLongitude(yLatitude: Double; xLongitude: Double); should be procedure TMap.SetLatitudeLongitude(yLatitude: Double; xLongitude: Double);
There is a superflous "mw" in the name of the class.

Activity

  1. mainxt commented on Sep 10, 2021

    @mainxt

    Which version of MapWinGIS are you trying to compile? And where do you get MapWinGIS_TLB.pas create yourself or take from github?
    I will assume that if you are trying to use an existing package ... it is outdated as it was built for version 5.1 and does not reflect the latest changes for version 5.2.4.

  2. mainxt commented on Sep 10, 2021

    @mainxt

    I get it ... you tried to install it wrong.
    Try to install with MapWinGIS.Delphi.Component.v5.1.0.zip
    But it does not support some of the 5.2.4 features.
    Need to update ....

    You can try this

  3. oldwired commented on Sep 10, 2021

    @oldwired
    Author

    I installed (the 32 Bit built) 5.2 Release from here: https://github.com/MapWindow/MapWinGIS/releases/tag/v5.2.4 compiled and installed the component from the Zip Folder and used the MapWinGIS_TLB.pas that gets copied into the installation directory.
    Now I see where I went wrong (I should not have used the .pas from the install folder), but it's all a bit confusing.

  4. Lwandile-M commented on Dec 13, 2024

    @Lwandile-M

    Good day

    Please assist on how you finally got it to work , or even a more updated step-by-step instruction on how to install the ocmponent in delphi CE if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions