https://learn.microsoft.com/fr-fr/windo ... epathcount написал/> Я думал, что idesktopwallaper был namespace, так что я так и был следующим: psepace.
Код: Выделить всё
#include
#include
#include
#include
int main(int argc, char *argv[])
{
UINT count;
IDesktopWallpaper::GetMonitorDevicePathCount(&count);
std::cout
g++ -c -o obj/Wallpaper.o src/Wallpaper.cpp
Код: Выделить всё
src/Wallpaper.cpp: In function 'int main(int, char**)':
src/Wallpaper.cpp:32:49: error: cannot call member function 'virtual HRESULT IDesktopWallpaper::GetMonitorDevicePathCount(UINT*)' without object
32 | IDesktopWallpaper::GetMonitorDevicePathCount(&count);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Кто -нибудь знает, как использовать эти методы?
Подробнее здесь: https://stackoverflow.com/questions/795 ... sing-mingw
Мобильная версия