Making use of WCHAR as a CHAR?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-06T19:38:35Z Indexed on 2010/06/06 19:42 UTC
Read the original article Hit count: 103

Filed under:
|

GDI+ makes use of WCHAR instead of what the WinAPI allows which is CHAR. Usually I can do:

char *str = "C:/x.bmp";

but how do I do this for wchar? I can't juse do

wchar_t *file = "C:/x.bmp");

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c