Showing posts with label char * to LPCTSTR. Show all posts
Showing posts with label char * to LPCTSTR. Show all posts

6/15/2017

small tip : Convert char * to LPCTSTR

CA2W(str)

for example

char str[100];
sprintf(str, "str_%d", 100);
CString A = CA2W(str);

^^