title: Display an int variable in a MessageBox
body: <p>I am working on an old app written in Visual C++ 6.0.  I am trying to display an <code>int</code> variable in a <code>MessageBox</code> for debugging reasons. Here is my code, I thought this would be a simple process, but I am just learning C++.  The two lines that are commented I have tried as well with similar errors.  Below is the error I am getting.</p>
  
  <pre><code>int index1 = 1;
  char test1 = index1;
  // char var1[] = index1;
  // char *varGo1 = index1;
  MessageBox(NULL, test1, "testx", MB_OK);
  </code></pre>
  
  <blockquote>
    <p>error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'char' to 'const char *'</p>
  </blockquote>