16,473
社区成员
发帖
与我相关
我的任务
分享
char buff[128];
char str[32];
CStringArray strArray;
int len=GetPrivateProfileSection("Session",buff,128,".//1.ini");
int x=0;
while(x<len)
{
strcpy(str,&buff[x]);
strArray.Add(str);
x+=strlen(str)+1;
}
while(strArray.GetSize())
{
MessageBox(strArray.GetAt(0));
strArray.RemoveAt(0);
}
char buff[128];
char str[32];
int len=GetPrivateProfileSection("Session",buff,128,".//1.ini");
int x=0;
while(x<len)
{
strcpy(str,&buff[x]);
cout<<str<<endl;
x+=strlen(str)+1;
}