Created
July 9, 2017 22:25
-
-
Save pmachapman/3cc6d0090f2b4edacd5b2f9863abbb3d to your computer and use it in GitHub Desktop.
An example on how to cast a char array to an LPCWSTR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
int main() | |
{ | |
MessageBox(NULL, (LPCWSTR)L"Testing, 123!", (LPCWSTR)L"Test", MB_OK); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment