回答編集履歴

2

_Tマクロに統一

2019/09/30 00:42

投稿

dodox86
dodox86

スコア9254

test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- CString strDevName = L"DeviceName";
25
+ CString strDevName = _T("DeviceName");
26
26
 
27
27
 
28
28
 

1

WCHARをTCHARに修正

2019/09/30 00:42

投稿

dodox86
dodox86

スコア9254

test CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  // WriteFileを使う版
48
48
 
49
- const WCHAR fileName[] = _T("./output.txt");
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