expression must have a class file directory c++ : <p>I don't understand this error .
i'am trying to create a folder with a variable inside </p>

<pre><code>std::ostringstream gr;

            gr &lt;&lt; "C:/Users/titib/Contacts/Desktop/Projet informatique/groupe/" &lt;&lt; groupe;

            CreateDirectory(gr.str().c_str());
</code></pre>

<p>error : create directory dont take 1 argument</p>
