CString str;
str.Format("SELECT * FROM userinfo WHERE username = '%s'",m_lpCmdLine);
try
{
m_pRecordset->Open(_variant_t(str), theApp.m_pConnection.GetInterfacePtr(),
adOpenDynamic,
adLockOptimistic,
adCmdText);
}为什么在2000?XP可以,98不可以,只要把WHERE及后面去了98才可以,为什么?