I'm trying to use FindWindow() from WinAPI, and I want to ask an input for window's title from the user:
char *input;
cout << "Window title: ";
cin >> input;
Pretty standard.
Now then, how do I convert this to LPCWSTR for FindWindow()?
I've already tried the following: _T(input), TEXT(input), (LPCWSTR)input but none of them worked.
I also tried using wchar_t instead of char, but I need char everywhere else so then I get dozens of errors for using wchar_t instead of char...