'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *'
ATL / WTL / STL
1
Posts
1
Posters
1
Views
1
Watching
-
I am trying to enable an application for unicode. //char c_buffer[ARRAY]; TCHAR c_buffer[ARRAY]; above are the changes I made into code. At this code sprintf(c_buffer, "%d", pb->i_id); abc.cpp: error C2664: 'sprintf': cannot convert parameter 1 from 'TCHAR *[1024]' to 'char *' Why so ? I have added TCHAR.h and strsafe.h If I hover the mouse over the code it tells "argument of type 'TCHAR *' is incompatible with parameter of type'char *'" pls help