Rxlib - Unresolved external 的世纪谜题 !!
我使用BCB6,今日装上了"Rxlib"第三方控件,使用 RxRichEdit 这个VCL,
全部相关文件都改好了编译完成,就卡在因为使用 TFindDialog 这个VCL,
编译一直出现以下,我换过 RichEdit3.0 这个第三方控件也是一样的问题:
[Linker Error] Unresolved external '__fastcall Rxriched::TRxCustomRichEdit::FindTextA(const System::AnsiString, int, int, System::Set<Rxriched::TRichSearchType, 0, 3>)' referenced from D:\StarET\UNIT1.OBJ
TRichSearchTypes st;
TFindDialog *cd;
int newpos;
if((cd = dynamic_cast<TFindDialog *> (Sender)) == 0)
MessageBox(NULL, "Dynamic Cast Failed!", "Find/Rep", MB_OK);
if(cd -> Options.Contains(frMatchCase))
st << Rxriched::stMatchCase;
if(cd -> Options.Contains(frWholeWord))
st << Rxriched::stWholeWord;
ifRichEdit1 -> SelLength)
RichEdit1 -> SelStart += 1;
newpos = RichEdit1 -> FindText(cd -> FindText, RichEdit1 -> SelStart,
RichEdit1 -> Text.Length(), st /* TRichSearchTypes() */); //一直是这行出错,TRichSearchTypes为第三方VCL的文件定义
if(newpos != -1)
{
RichEdit1 -> SelStart = newpos;
RichEdit1 -> SelLength = cd -> FindText.Length();
} else{
MessageBox(NULL, "End of document reached.", "Find/Rep", MB_OK);
RichEdit1 -> SelStart = 0;
}