LoadMap XE7
Posted: Tue Dec 02, 2014 9:57 pm
I am trying to use the LoadMap function to load a shape file and DBF data using XE7 and TeeChartPro2014.
The function works just fine with the basic call LoadMap(MySeries,'MyShape.shp') but when I try and use the additional parameters that pass in a reference to a TDataset the program will not compile with message "No overloaded version of LoadMap"
I looked at the LoadMap code and the problem seems to be related to compiler directive NOUSEBDE being defined in XE7 which in turn causes Tdataset to be an empty class in TeeSHP. Specifically, in TeeShp there is this code:
{$IFDEF NOUSE_BDE}
type
TDataSet=class
end;
{$ENDIF}
To try and overcome this I have installed the BDE back into XE7 (even though I dont really want to use it). I tried commenting out NOUSEBDE for XE7 in TeeDefs.inc like this:
{$IFDEF D21}
{.$DEFINE NOUSE_BDE} // BDE is not available in XE7 and up (Win32 & Win64)
{$ENDIF}
But the result of doing that is that the package DCLTeePro921 will not compile. When using TeeRecompile I get this error: DclTeePro921.dpk(63) Error: E1033 Unit 'Bde.Bdeconst' implicitly imported into package 'DclTeePro921'
So...I have two basic questions:
1. Do you have any suggestions on how to proceed to get TeeChart to recompile AND reenable the us3e of BDE so that I can get the extended version of LoadMap to work?
2. Can I use the extended version of LoadMap with TDatasets even if I am NOT using the BDE. Pardon my ignorance but I thought that TDataset was NOT dependent on the existence of the BDE (or am I wrong).
The function works just fine with the basic call LoadMap(MySeries,'MyShape.shp') but when I try and use the additional parameters that pass in a reference to a TDataset the program will not compile with message "No overloaded version of LoadMap"
I looked at the LoadMap code and the problem seems to be related to compiler directive NOUSEBDE being defined in XE7 which in turn causes Tdataset to be an empty class in TeeSHP. Specifically, in TeeShp there is this code:
{$IFDEF NOUSE_BDE}
type
TDataSet=class
end;
{$ENDIF}
To try and overcome this I have installed the BDE back into XE7 (even though I dont really want to use it). I tried commenting out NOUSEBDE for XE7 in TeeDefs.inc like this:
{$IFDEF D21}
{.$DEFINE NOUSE_BDE} // BDE is not available in XE7 and up (Win32 & Win64)
{$ENDIF}
But the result of doing that is that the package DCLTeePro921 will not compile. When using TeeRecompile I get this error: DclTeePro921.dpk(63) Error: E1033 Unit 'Bde.Bdeconst' implicitly imported into package 'DclTeePro921'
So...I have two basic questions:
1. Do you have any suggestions on how to proceed to get TeeChart to recompile AND reenable the us3e of BDE so that I can get the extended version of LoadMap to work?
2. Can I use the extended version of LoadMap with TDatasets even if I am NOT using the BDE. Pardon my ignorance but I thought that TDataset was NOT dependent on the existence of the BDE (or am I wrong).