How to assign string into MessageBox C++?
<p>hello this is my simple code. I want to use String in to that MessageBox. I used google. But i have no good solution. I am using netbeans and Mingw.</p>
<pre><code>#include &lt;windows.h&gt;
int main()
    {
MessageBox(NULL, &quot;Hello world&quot;,&quot;Warning!&quot;, 
MB_ICONEXCLAMATION | MB_OK);
}
</code></pre>
<p>Now you can see &quot;Hello world&quot; in that messagebox. I want to assign it as a string. Something like this.</p>
<pre><code>String mymessage = &quot;Hello world&quot;;
</code></pre>
<p>and call it like this:</p>
<pre><code>MessageBox(NULL, mymessage  ,&quot;Warning!&quot;, 
    MB_ICONEXCLAMATION | MB_OK);
</code></pre>
<p>I am new to C++. If you having C++ tutorial please list it. Please do not add Visual C++. The google always giving Visual C++ solutions. But that solutions didn't fix my problems. Hope you can understand.</p>
<p>Thank you for your time.</p>
<p>In that case my main thing is assign String and call it for MessageBox.</p>