Skip to content

Instantly share code, notes, and snippets.

@pmachapman
Created July 9, 2017 22:25
Show Gist options
  • Save pmachapman/3cc6d0090f2b4edacd5b2f9863abbb3d to your computer and use it in GitHub Desktop.
Save pmachapman/3cc6d0090f2b4edacd5b2f9863abbb3d to your computer and use it in GitHub Desktop.
An example on how to cast a char array to an LPCWSTR
#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