Using _tmain instead of main, in a modified example from above, causes the error: Unresolved external symbol '_main'
#define _UNICODE
#define UNICODE
#include <stdio.h>
#include <tchar.h>
int _tmain(int argc, _TCHAR *argv[])
{
_TCHAR buf[50];
_tcscpy(buf, _T("hello"));
_tprintf(_T("%ls - %d\n"), buf, sizeof(_TCHAR));
return 0;
}
Robert Wishlaw