在qt中调用windows api除了引入头文件还要引入lib文件
比如调用FindWindow,只引入头文件(windows.h)则编译时会报错
需要在.h或.cpp文件中加上
#pragma comment(lib,"user32")
qt中调用windows api需要注意的
最新推荐文章于 2024-08-13 17:50:20 发布
在qt中调用windows api除了引入头文件还要引入lib文件
比如调用FindWindow,只引入头文件(windows.h)则编译时会报错
需要在.h或.cpp文件中加上
#pragma comment(lib,"user32")