Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. COM newbie - ITaskbarList problem

COM newbie - ITaskbarList problem

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kri5
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups