Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Win32 プロジェクトを作成しており、TCHARどこでも使用しようとしています。しかし、これは非 MFC プロジェクトであるため、_T定義していません。
TCHAR
_T
プロジェクトでそれを取得するにはどうすればよいですか?
OK、それを行う方法を見つけました。追加するだけです
#include <tchar.h>
にstdafx.h、MFC の依存関係はありません。非 MFC プロジェクトにはデフォルトで含まれていません。
stdafx.h