CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Binding Data to Silverlight 4.0 Controls Using ASP.NET MVC Framework 2.0
  • ADO.NET Data Services in the .NET Framework
  • Visual C++ Programming: What's new for MFC library in VC++ 2010?
  • Microsoft Visual Studio LightSwitch and What It Can Do For You

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old August 27th, 2009, 05:23 AM
    reachb4 reachb4 is offline
    Member
     
    Join Date: Mar 2005
    Posts: 114
    reachb4 is an unknown quantity at this point (<10)
    IShellFolder SelectItem

    I need to select all jpeg files in a folder when user presses a keyboard button after selecting any one of the jpeg files. I used IFolderView::SelectItem to select files. I used IShellFolder::ParseDisplayName() function to get pidl of the candidate files which need to be selected. The
    problem is that ParseDisplayName is always failing. HRESULT says it is
    because "a null reference pointer is passed into the stub". I am
    getting proper value in *psf. Please tell me why is it happening so?
    Code:
     IShellFolder *psf;
                           if (SUCCEEDED(ppf2->QueryInterface
    (IID_IShellFolder,(void**)&psf))) {
    
     HRESULT hr = psf->ParseDisplayName(NULL,NULL,g_szPath,NULL,pidlSelected,NULL);
    
    }
    Regards,
    J
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 08:42 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.