title: Invalid convert from std::sqlString to char const* in C++ and Mysql
body: <pre><code>con-&gt;setSchema(DATABASE);
  // Query section
  stmt = con-&gt;createStatement();
  res = stmt-&gt;executeQuery("SELECT * FROM  `submission` WHERE  'status' = 0");
  while (res-&gt;next()) {
   // Access column data by alias or column name 
   string insert = res-&gt;getString('pid');
   const char* p = insert.c_str();
  
    pipe = fopen(p, 'w');
  
    fprintf(pipe,"Successfully created");
  }
  </code></pre>
  
  <p>How can i convert the <code>res-&gt;getString('pid')</code> value into <code>fopen()</code> as filename. I get error because its asking for <code>char const*</code> </p>