0
Answer

Error 2664 - error in debug mode and not in release mode

Indumathy

Indumathy

17y
1.9k
1

hi,

i recently tried to compile a program in debug mode and it gave me an error -

  error 2664 :    cannot convert parameter 1 from 'const char [11]' to 'LPCTSTR'

 

i then changed in my

Project Properties -> Configuration Properties -> General -> Character Set.

 

and set it to not set . It started working properly. but in release mode,  even if the character set is set to unicode character set, it works fine.Can anybody explain the reason??  

       

Next Recommended Forum