COM newbie - ITaskbarList problem
-
I just started COM programming and managed to write some small sample programs to use the IActiveDesktop and IShellLink interfaces and their methods; basically i am playing around with things like these for the time being:
CoInitialize(NULL); WCHAR wszWallpaper [MAX_PATH]; HRESULT hr; IActiveDesktop* pIAD; // using Active Desktop interface hr = CoCreateInstance ( CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER, IID_IActiveDesktop, (void**) &pIAD ); if ( SUCCEEDED(hr) ) { // Get the name of the wallpaper file. hr = pIAD->GetWallpaper ( wszWallpaper, MAX_PATH, 0 ); if ( SUCCEEDED(hr) ) { wcout << L"Wallpaper path is:\n " << wszWallpaper << endl << endl; } } //.... etc
The above compiles correctly and works successfully. However, when i try to use the ITaskbarList in the same manner, the compiler throws it all up, telling me that ITaskbarList is an undeclared identifier... Any ideas where i'm getting it all wrong? Many thanks... Chris