cannot convert parameter 1 from ‘char’ to ‘LPCWSTR’

Go to the Properties for your Project and under Configuration Properties/General, change the Character Set to “Not Set”. This way, the compiler will not assume that you want Unicode characters, which are selected by default:

alt text

Leave a Comment