发布于 2008-09-28 13:39:51
0楼
char* str,str1,str2;
编译是能通过,但是肯定无法正常运行,str1和str2都已经不是指针了。
char str[10];
char* str1,*str2;
SetTagChar("name1",GetText(lpszPictureName,"classname"));
SetTagChar("name2",GetText(lpszPictureName,"sheetname"));
str1=GetTagChar("name1");
str2=GetTagChar("name2");
sprintf(str,"%s%s",str1,str2);
SetTagChar("filename",str);
非淡泊无以明志,非宁静无以致远