title: Error: Cannot add two pointers
body: <p>It gives the error in the title about this piece of code:</p>
  
  <pre><code>string DDateTime::date2OracleDate(DATE Date)
  {
      string s;
      s="TO_DATE('" + DateFormat("%d/%m/%Y",Date) + "','dd/MM/YYYY')";
      return s;
  }
  </code></pre>
  
  <p>I don't understand how that is possible, no pointers involved....</p>
  
  <p>EDIT:</p>
  
  <pre><code>string DDateTime::DateFormat(string sFormat,DATE Date)
  {
      struct tm tmTemp;
      RipOf_AfxTmFromOleDate(Date, tmTemp);
      RipOf_AfxTmConvertToStandardFormat(tmTemp);
      char sFormatted[MAX_TIME_BUFFER_SIZE];
      strftime(sFormatted, MAX_TIME_BUFFER_SIZE, sFormat.c_str(), &amp;tmTemp);
      return sFormatted;
  }
  </code></pre>