there is only a FindText, not a FindTextA
I know. That's why I am so puzzled.
But you can also directly use the "Command" method to do the serach.
I have done as you suggested and it certainly works, though I'm still trying to find an explanation for what was happening. How can Builder's "Code completion" detect a FindTextA method that does not exist?
// If we search case insensitive we simply search 2 versions of the same string
// This allows the support of charsets
if CaseInsensitive then
begin
CommandStr(COMPDF_FindAltText, AnsiUpperCase(Text));
Text := AnsiLowerCase(Text);
end;
if FindNext then
Result := CommandStr(COMPDF_FindNext, Text)
else
Result := CommandStr(COMPDF_FindText, Text);
if HighLight then
CommandStr(COMPDF_HighlightText, Text);
I get a linker error compiling wpViewPdf3 in Borland C++ Builder 5 (Windows XP).
The error says:
[Linker Error] Unresolved external '__fastcall Wpviewpdf3::TWPViewPDF::FindTextA(System::AnsiString, bool, bool, bool, bool)' referenced from ...
This is what I have: int p= WPViewPDF1->FindText(SomeText,...
If I change in my code FindText to FindTextA I still have this problem.
Borland C++ Compiler's "Code Completion" only shows FindTextA as a method but in wpViewPdf3.pas the method is defined as Findtext (without A, that I guess stands for AnsiString). There is no FindTextA declaration anywhere.
Is there a disjoint between how the method was registered, to what it actually should be in the hpp files?
Do I lack any reference?