title: How do you create a Message Box thread?
body: <p>I have tried doing things like...</p>
  
  <pre><code>const char *MessageBoxText = "";
  
  DWORD WINAPI CreateMessageBox(LPVOID lpParam){
  
      MessageBox(NULL, MessageBoxText, "", MB_OK|MB_APPLMODAL);
      return TRUE;
  
  }
  
  MessageBoxText = "Blah, Blah, Blah...";
  CreateThread(NULL, 0, &amp;CreateMessageBox, NULL, 0, NULL);
  </code></pre>
  
  <p>However, this does not seem to work correctly for the task I am trying to perform.
  What is the best way to create a thread for a message box, without having it glitch up?</p>