You need to add gdi32.lib and user32.lib import libraries to your linker.
If you see "unresolved external symbol" error in linker, then you need to search where is this symbol. For example, lets take __imp_CreateCompatibleDC. Remove __imp_ prefix and search MSDN for CreateCompatibleDC function. You'll find this:
https://docs.microsoft.com/en-us/...ngdi/nf-wingdi-createcompatibledc Scroll to the bottom and check what is written next to "Library"? gdi32.lib! And that is exactly what you need to add to your linker arguments.
You can see Casey explaining and doing this and the end of Episode 1 "Import a library":
https://hero.handmade.network/episode/code/day001/#3720
Similar thing happened at end of Episode 2 "Drawing something with WM_PAINT":
https://hero.handmade.network/episode/code/day002/#3375
And next time please copy&paste text instead of posting screenshot of text.