質問編集履歴
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
CString str;
|
32
32
|
|
33
|
-
char tmp[180] = {0};//一時的に使用
|
33
|
+
char tmpbuf[180] = {0};//一時的に使用
|
34
34
|
|
35
35
|
// 最終的にセットされる文字列
|
36
36
|
|
@@ -48,13 +48,13 @@
|
|
48
48
|
|
49
49
|
FuncA(str);//文字列取得
|
50
50
|
|
51
|
-
wsprintf( tmpbuf, "%s",
|
51
|
+
wsprintf( tmpbuf, "%s", str);
|
52
52
|
|
53
53
|
FuncB(tmpbuf);//文字列加工
|
54
54
|
|
55
55
|
str = tmpbuf;
|
56
56
|
|
57
|
-
wsprintf( setBuffer1, "%s",
|
57
|
+
wsprintf( setBuffer1, "%s", str)
|
58
58
|
|
59
59
|
|
60
60
|
|
@@ -62,13 +62,13 @@
|
|
62
62
|
|
63
63
|
FuncA(str);//文字列取得
|
64
64
|
|
65
|
-
wsprintf( tmpbuf, "%s",
|
65
|
+
wsprintf( tmpbuf, "%s", str);
|
66
66
|
|
67
67
|
FuncB(tmpbuf);//文字列加工
|
68
68
|
|
69
69
|
str = tmpbuf;
|
70
70
|
|
71
|
-
wsprintf( setBuffer2, "%s",
|
71
|
+
wsprintf( setBuffer2, "%s", str)
|
72
72
|
|
73
73
|
|
74
74
|
|
@@ -76,13 +76,13 @@
|
|
76
76
|
|
77
77
|
FuncA(str);
|
78
78
|
|
79
|
-
wsprintf( tmpbuf, "%s",
|
79
|
+
wsprintf( tmpbuf, "%s", str);
|
80
80
|
|
81
81
|
FuncB(tmpbuf);
|
82
82
|
|
83
83
|
str = tmpbuf;
|
84
84
|
|
85
|
-
wsprintf( setBuffer3, "%s",
|
85
|
+
wsprintf( setBuffer3, "%s", str)
|
86
86
|
|
87
87
|
|
88
88
|
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
// FuncB((char*)((LPCTSTR)str));
|
96
96
|
|
97
|
-
// wsprintf( setBuffer1, "%s",
|
97
|
+
// wsprintf( setBuffer1, "%s", str)
|
98
98
|
|
99
99
|
//文字列2の処理
|
100
100
|
|
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
// FuncB((char*)((LPCTSTR)str));
|
104
104
|
|
105
|
-
// wsprintf( setBuffer2, "%s",
|
105
|
+
// wsprintf( setBuffer2, "%s", str)
|
106
106
|
|
107
107
|
//文字列3の処理
|
108
108
|
|
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
// FuncB((char*)((LPCTSTR)str));
|
112
112
|
|
113
|
-
// wsprintf( setBuffer3, "%s",
|
113
|
+
// wsprintf( setBuffer3, "%s", str)
|
114
114
|
|
115
115
|
}
|
116
116
|
|
@@ -142,7 +142,7 @@
|
|
142
142
|
|
143
143
|
ChangeStringFunc(&tmpCstr);//文字列を加工
|
144
144
|
|
145
|
-
wsprintf(buffer, "%s",
|
145
|
+
wsprintf(buffer, "%s", tmpCstr);
|
146
146
|
|
147
147
|
}
|
148
148
|
|