lmk error
error LNK2001: unresolved external symbol __imp__GetAsyncKeyState@4 help
Post your full code so we can help. It says it's a linker error. So maybe check your additional dependencies under Project -> Properties -> Configuration Properties -> Linker -> Input. Make sure kernel32.lib and user32.lib are there.
My compiler was throwing some random linker errors the other day and that was my problem.