i tried a code like this to use mfc's IActiveDesktop.
#include "comdef.h"
#include "wininet.h"
#include "shlobj.h"
IActiveDesktop *pActiveDesktop;
hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER,
IID_IActiveDesktop, (void**)&pActiveDesktop);
pActiveDesktop->Release();
i dont get an error if the last line is not included. if included, this is what i get
"Use of undefined class or struct IActiveDesktop"
what do i do?
#include "comdef.h"
#include "wininet.h"
#include "shlobj.h"
IActiveDesktop *pActiveDesktop;
hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER,
IID_IActiveDesktop, (void**)&pActiveDesktop);
pActiveDesktop->Release();
i dont get an error if the last line is not included. if included, this is what i get
"Use of undefined class or struct IActiveDesktop"
what do i do?