title: How do I use an int string with a messagebox?
body: <p>I'm trying to get a messagebox to display the address of a variable by casting an int to a const CHAR*, my current dysfunctional attempt looks like this:</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  
  int main()
  {
   int *ip;
   int pointervalue = 1337;
   int thatvalue = 1;
   ip = &amp;pointervalue;
   thatvalue = (int)ip;
   std::cout&lt;&lt;thatvalue&lt;&lt;std::endl;
   MessageBox (NULL, (const char*)thatvalue, NULL, NULL);
   return 0;
  }
  </code></pre>
  
  <p>the dos box prints 2293616, the messagebox prints "9|"</p>