在使用IActiveDesktop的时候出现错误如下:
error C2065: 'IActiveDesktop' : undeclared identifier
error C2065: 'pAdt' : undeclared identifier
warning C4552: '*' : operator has no effect; expected operator with side-effect
error C2227: left of '->GetWallpaper' must point to class/struct/union
error C2227: left of '->Release' must point to class/struct/union
error C2227: left of '->Release' must point to class/struct/union
解决办法:
将#include <wininet.h>添加到
#include <afxdisp.h> // MFC Automation classes
之前