托管C++的数据库读取
托管C++的数据库读取<BR>SqlConnection *con=new SqlConnection(constr);<BR> SqlCommand *com=new SqlCommand(sqlstr,con);<BR> con->Open();<BR> SqlDataReader *rd=com->ExecuteReader();<BR> while(rd->Read())<BR> {<BR> if(this->logname->Text->Trim()->Equals(<FONT color=#ee3d11>rd["uid"]->ToString())</FONT><BR> {<BR> }<BR> }<BR>这里怎么出错了.还有我想通过SqlDataReader *rd 读取数据.高手指点一下怎么做啊页:
[1]
