Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top