title: 'CreateDirectoryW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR' in OpenCV 2.4.5 and VS 2010
body: <p>I was trying the sample code bagofwords_classification.cpp from openCV 2.4.5 to Visual Studio 2010 (VC++ based). But I found the error code :</p>
  
  <pre><code>error C2664: 'CreateDirectoryW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'   
  </code></pre>
  
  <p>Can you help me to give me the solution about that problem? Thanks. :)</p>
  
  <p><strong>Update v1:</strong></p>
  
  <pre><code>static void makeDir( const string&amp; dir )
  {
  #if defined WIN32 || defined _WIN32
      CreateDirectory( dir.c_str(), 0 );
  #else
      mkdir( dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH );
  #endif
  }
  
  static void makeUsedDirs( const string&amp; rootPath )
  {
      makeDir(rootPath + bowImageDescriptorsDir);
      makeDir(rootPath + svmsDir);
      makeDir(rootPath + plotsDir);
  }
  </code></pre>