I'm using C++ builder 6 with teechart 7.0.3. (I will upgrade to 7.0.4 later today.)
I'm trying to use the TNearestTool::GetNearestPoint method,
and the compiler gives me the following error:
[C++ Error] unit2.cpp(6326): E2285 Could not find a match for 'TNearestTool::GetNearestPoint(TChartSeries *,int,int)'
[C++ Error] unit2.cpp(6389): E2285 Could not find a match for 'TNearestTool::GetNearestPoint(TChartSeries *,int,int,int)'
You can see that I tried matching both forms of the function (with and without the final bool).
I checked the header file, and it looks OK...
What's going on here?
bcb6 703 TNearestTool::GetNearest not found.
-
- Newbie
- Posts: 3
- Joined: Fri Nov 15, 2002 12:00 am
- Location: Ann Arbor, MI
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jon,
That may be because you have to define the metaclass like:
If you already know the series type then you'd better use it, i.e.: TLineSeries.
That may be because you have to define the metaclass like:
Code: Select all
ChartTool1->GetNearestPoint(__classid(TChartSeries),Chart1->Series[0],X,Y);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 4
- Joined: Wed Sep 29, 2004 4:00 am
- Location: Ann Arbor, MI
- Contact: