Why do you think you want LPCWSTR
? LPCWSTR
is used in programs compiled for UNICODE
. If you are using the char type everywhere then you should change the project property Character Set from 'Use UNICODE
character set' to 'Use Multibyte Character Set." If you do that then FindWindow
will accept a char array, like
char input[256];