Open oldwired opened 3 years ago
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.
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 ....
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.
MapWinGIS_TLB.pas doesn't compile under Delphi (10.4.2, but should be a general problem.
If you look at MapWinGIS_TLB:16332 you can see that
procedure TmwMap.SetLatitudeLongitude(yLatitude: Double; xLongitude: Double);
should beprocedure TMap.SetLatitudeLongitude(yLatitude: Double; xLongitude: Double);
There is a superflous "mw" in the name of the class.