Skip to main content
added 1 characters in body
Source Link
JNL
  • 4.7k
  • 21
  • 29

char is a single character, not a String.

You need;need Unicode, you can use TCHAR;

char[]TCHAR[] text = _T("Hello World.");
MessageBox(NULL, text, NULL, NULL);

char is a single character, not a String.

You need;

char[] text = "Hello World."

char is a single character, not a String.

You need Unicode, you can use TCHAR;

TCHAR[] text = _T("Hello World.");
MessageBox(NULL, text, NULL, NULL);
Source Link
JNL
  • 4.7k
  • 21
  • 29

char is a single character, not a String.

You need;

char[] text = "Hello World."