Ok I have tried something this...
#define FIRSTSTRING "my string 1"
....
wchar_t myString[] = L""FIRSTRING;
and I get the error message concatenating mismatched strings
Concatenating wide "" with narrow "my string 1".
How to I get myString to be a wide string from the macro?
Suppose I have something like...
#define FIRSTSTRING "my string 1"
...
char[] secondString = L"my string 2"
char[] firstString = ???
Where there is ???, What do I put here to set firstString to the value of FIRSTRING macro, similar to how secondString is set.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.