The error message tells you where in your code the errors occur: line 2038, column 45; and line 2167, column 53 - but your code fragment only shows one of those (probably). Use the editor to go to that line (double click the message in the Errors panel and it'll jump there, or use
CTRL+G
to go to a specific line number).
Once you know which line which message is associated with you can identify which exact part of that line is being specified. If I had to guess, it would be the
MAKEINTRESOURCE
call because that macro does various casts which are probably irrelevant here - it's defined as
#define MAKEINTRESOURCE(i) (LPTSTR) ((DWORD) ((WORD) (i)))
And IDC_WAIT is already defined as:
#define IDC_WAIT MAKEINTRESOURCE(32514)
so it's very likely that if you remove the
MAKEINTRESOURCE
call in your code the error will go away.
I'd also guess that you grabbed the code from someone who isn't as fastidious as you: they might ignore warnings which you don't (and neither do I) so never saw it as a problem.
It's also possible to disable specific warnings for a specific chunk of code:
warning #pragma | Microsoft Learn[
^] if you can find no other way to deal with it.