Convert char to TCHAR* argv[]

Sijith picture Sijith · Apr 16, 2010 · Viewed 11.4k times · Source

How can I input text into TCHAR* argv[]?

OR: How can I convert from char to TCHAR* argv[]?

char randcount[] = "Hello world";

TCHAR* argv[];

argv = convert(randcount);

Answer

Naveen picture Naveen · Apr 16, 2010

One way to do is:

char a[] = "Hello world";
USES_CONVERSION;
TCHAR* b = A2T(a);