如果未使用 ReleaseBuffer,会导致Find()函数查找失败!
1 { 2 GetPrivateProfileString("SZDeskConnections", strTemp.Right(1),NULL,strBuffer.GetBuffer(100),100,".\\RQTrans.INI"); 3 strBuffer.ReleaseBuffer(); 4 } 5 int iPos[8] = {0}, nIndex(0); 6 while (nIndex<7) 7 { 8 nIndex++; 9 iPos[nIndex] = strBuffer.Find("|", iPos[nIndex-1]+1); 10 }
时间: 2024-10-09 19:54:09