Jump to content
  • Advertisement
Sign in to follow this  
Skute

IShellFolder::ParseDisplayName with logitech camera

This topic is 4827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, im having trouble using ParseDisplayName and SHGetFileInfo with my logitech camera. Im trying to create a combo box which mimics the drop down combo box in my computer etc. The code im using is:
HRESULT hr = pDesktop->ParseDisplayName(NULL, NULL, T2OLE(pStringPidl->strNameForParsing.GetBuffer()), NULL, &pidlFull, NULL);
                            if (SUCCEEDED(hr))
                            {
                              nAdded = this->AddString(pStringPidl->strName);
                              this->SetItemDataPtr(nAdded, static_cast<void *>(new CComboBoxDriveListItemData(2, pidlFull)));
                              pMalloc->Free(pidlFull);
                            }

But its failing with, hr = "The system cannot find the file specified." The variable, strNameForParsing = ";;{E211B736-43FD-11D1-9EFB-0000F8757FCD}\devid:{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0003:" If you copy and paste "devid:{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0003:" into the address bar of my computer, it successfully initialises the camera. But it wont recognise the previous part of the GUID (which is actually the GUID for "Scanners and Cameras". Im trying to use the pidlFull value with SHGetFileInfo so i can get an icon for the camera to display in my combo box. All the other icons work fine, help!! Thanks

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!