EDBEngineError* dbError (type name expected?)
ADOQuery1->Prepared=true;
ADOQuery1->Parameters->ParamByName("username")->Value="admin";
ADOQuery1->Parameters->ParamByName("password")->Value="admin";
try
{
// Execute the statement, and open the dataset.
Query1->Open();
}
catch(EDBEngineError* dbError)
{
for (int i = 0; i < dbError->ErrorCount; i++)
{
MessageBox(0, dbError[i].Message.c_str(),
"SQL Error", MB_OK);
}
}
building...
catch(EDBEngineError* dbError)
出现: Type name expected
catch statement missing)
请问这是怎么回事 EDBEngineError不是这样用的不?