The annoying LPCWSTR in as WinAPI parameter

I'm just trying to launch a message box in visual c++

This does not work....


Help. :-)
silentthread2kSenior Software EngineerAsked:
Who is Participating?
LordOfPortsConnect With a Mentor Commented:
Visual C++ .NET

Navtive C++
MessageBox(_T("test"), _T("test"));
silentthread2kSenior Software EngineerAuthor Commented:
It rocks man! Clean, short and to the point!
Here is also a reference to the .NET version with various other options such as icons (code is in the lower section of the page:

...and the native Win32 version reference:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.