首先需要引入:#include<windows.h> 否则会出现 HINSTANCE 未定义的错误 转载于:https://www.cnblogs.com/tengpan-cn/p/4717278.html