托管项目默认没有链接Windows SDK的库。你可以在链接选项中把这些库加上。
至于应该加哪些库,可以查找报链接错误的函数的SDK文档。
keybd_event已经过时,新的代码应该用SendInput。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP