回答編集履歴
2
_Tマクロに統一
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
CString strDevName =
|
25
|
+
CString strDevName = _T("DeviceName");
|
26
26
|
|
27
27
|
|
28
28
|
|
1
WCHARをTCHARに修正
test
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
// WriteFileを使う版
|
48
48
|
|
49
|
-
const
|
49
|
+
const TCHAR fileName[] = _T("./output.txt");
|
50
50
|
|
51
51
|
HANDLE handle = CreateFile(fileName, GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
52
52
|
|