Linking to user32.lib in QTCreator

后端 未结 1 1737
夕颜
夕颜 2021-01-22 01:41

I need the WINAPI function SendInput from user32.lib for my application and the compiler complains about undefined references to \"SendInput\".

Thus, I tried to link use

相关标签:
1条回答
  • 2021-01-22 02:30

    I solved the problem.

    I needed to define WINVER in the .pro file: "DEFINES += "WINVER=0x0500" QT seems to ignore ofer #define WINVER statements in header files.

    0 讨论(0)
提交回复
热议问题