类型转换的问题
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TStrings *pSerList;
TStrings *pModeList;
ReadPhysicalDrive(pSerList,pModeList);
Edit1->Text=pSerList->Strings[0] //这里出错
Edit2->Text=pModeList->Strings[0] //这里出错
}
ReadPhysicalDrive函数的原型是:
void __fastcall ReadPhysicalDrive(TStrings *pSerList, TStrings *pModeList);
请问怎么解决呢?怎么才能让Edit1里正确显示?