quote:以下是引用dcount107在2008-09-27 11:21:11的发言:
char str[20];
自己输入两个子字符串,并没有定义大小
改成了char str[]数组也不能解决
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);