sashoalm
sashoalm

Reputation: 79645

_T("") macro for non-MFC, Win32 projects

I'm creating a Win32 project, and I'm trying to use TCHAR everywhere. But since it's a non-MFC project, I don't have _T defined.

How do I get it in my project?

Upvotes: 1

Views: 2978

Answers (1)

sashoalm
sashoalm

Reputation: 79645

OK, found out how to do it. I just need to add

#include <tchar.h>

to stdafx.h, and it doesn't carry any MFC dependencies. It's just not included by default in non-MFC projects.

Upvotes: 6

Related Questions