Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top