title: Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
body: <p>I need to work on a project that was written in msvcpp6.0sp6</p>
  
  <p><strong>I DIDN'T write the project. I know very little about its inner works. I DO know it WAS POSSIBLE to build it in the past.</strong></p>
  
  <p>while trying to build this project that was built successfuly in the past(not by me)</p>
  
  <p>I get the error:</p>
  
  <pre><code>        Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
  </code></pre>
  
  <p>for example:
      error C2664: 'strncpy' : cannot convert parameter 2 from 'const unsigned short *' to 'const char *'</p>
  
  <p>error C2664: 'void __cdecl CString::Format(const unsigned short *,...)' : cannot convert parameter 1</p>
  
  <p>for a few dozen implicit conversions. I mustn't change the code. how can I force the complier to accept the implicit convertions?</p>