604
社区成员
发帖
与我相关
我的任务
分享
[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;
}
switch(ByteType("你好haha吗", 5))
{
case mbLeadByte:
ShowMessage("第一个字符");
break;
case mbTrailByte:
ShowMessage("第二个字符");
break;
case mbSingleByte:
ShowMessage("不是中文字符");
break;
}
typedef Richedit::CHARFORMAT2A TCharFormat2;
void __fastcall GetAttributes(Richedit::CHARFORMAT2A &Format);
void __fastcall SetAttributes(Richedit::CHARFORMAT2A &Format);
void __fastcall SetAttributes(Richedit::CHARFORMAT2A &Format);
void __fastcall InitFormat(Richedit::CHARFORMAT2A &Format);