Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top