小妹新手求助,望哥哥们解答。感谢
本帖最后由 donet020 于 2013-09-26 13:05:22 编辑 以下C++代码如何转成C#
int m_intSvrQueNum;
CString strAppMode,strSend,userid,password,strSvrQueNum,strSpecialClnID,strBuildInfo,userid,password ;
strSvrQueNum.Format("%d",m_intSvrQueNum);
strAppMode="0";
strBuildInfo="1.0.0.1";
strSpecialClnID="2";
userid="vs2010";
password="123456";
strSend = userid + char(1)
+ password + char(1)
+ strAppMode + char(1)
+ strSvrQueNum + char(1)
+ strSpecialClnID + char(1)
+ strBuildInfo + char(1) ;
strSend=userid + char(1)+ strSend;
[解决办法]
String strSvrQueNum = String.Format("%d",m_intSvrQueNum);
String strAppMode="0";
String strBuildInfo="1.0.0.1";
String strSpecialClnID="2";
String userid="vs2010";
String password="123456";
String strSend = userid + (char)1
+ password + (char)1
+ strAppMode + (char)1
+ strSvrQueNum + (char)1
+ strSpecialClnID + (char)1
+ strBuildInfo + (char)1 ;
strSend = userid + (char)1 + strSend;