S
speed258
Guest
Hello I trying to include user32.lib in my project(c++ application) but seems it does not work, I have included
#include <windows.h>
//other includes
#pragma comment(lib, "user32.lib")
But it still shows GetForegroundWindow as undefined.
Tried to set property > linker > Input > Additional Dependencies:
user32.lib;
WindowsApp.lib;
$(OutDir)GameAssembly.lib;
d3d9.lib;
kernel32.lib;
gdi32.lib;
winspool.lib;
comdlg32.lib;
advapi32.lib;
shell32.lib;
ole32.lib;
oleaut32.lib;
uuid.lib;
odbc32.lib;
odbccp32.lib;
%(AdditionalDependencies)
But still shows as GetForegroundWindow undefined, current VS using is VS2019 with all C++ and Win SDK installed,
In path: C:\Program Files (x86)\Windows Kits\10\Lib user32.lib exist in diffrent windows versions folders, what I'm missing here? Thanks.
Continue reading...
#include <windows.h>
//other includes
#pragma comment(lib, "user32.lib")
But it still shows GetForegroundWindow as undefined.
Tried to set property > linker > Input > Additional Dependencies:
user32.lib;
WindowsApp.lib;
$(OutDir)GameAssembly.lib;
d3d9.lib;
kernel32.lib;
gdi32.lib;
winspool.lib;
comdlg32.lib;
advapi32.lib;
shell32.lib;
ole32.lib;
oleaut32.lib;
uuid.lib;
odbc32.lib;
odbccp32.lib;
%(AdditionalDependencies)
But still shows as GetForegroundWindow undefined, current VS using is VS2019 with all C++ and Win SDK installed,
In path: C:\Program Files (x86)\Windows Kits\10\Lib user32.lib exist in diffrent windows versions folders, what I'm missing here? Thanks.
Continue reading...