Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const char *source = "Hello World!";
- int buffer_size = MultiByteToWideChar(0, 0, source, -1, NULL, NULL) * sizeof(wchar_t);
- WCHAR *destination = new WCHAR[buffer_size]; // allocate memory
- MultiByteToWideChar(0, 0, source, -1, destination, buffer_size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement