title: simple messagebox display in vc++
body: <p>I have just started using vc++ 2008. I just want to see one message (dialog box). I have created my project as a win32 project application.</p>
  
  <p>I wrote the code below to see a MessageBox</p>
  
  <pre><code>MessageBoxW(NULL, "Window Registration Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK);
  </code></pre>
  
  <p>but I m getting an error</p>
  
  <blockquote>
    <p>error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [28]' to 'LPCWSTR'</p>
  </blockquote>
  
  <p>What is this error ? What do I need to do to see a simple message box display.</p>