CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2010
    Posts
    2

    [RESOLVED] shell32.dll problems

    Hi!

    Tried to use the function SHParseDisplayName but got the error message:
    error C2065: 'SHParseDisplayName' : undeclared identifier

    I am using VC 6.0 and Windows XP
    Have checked \windows\system32\shell32.dll (is version 6.0.2900.2180)
    have included the shlobj.h
    And linked and added shell32.lib

    Am a newbie, but guessing it has to do with some component that is outdated.
    Any ideas on how to fix it?

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: shell32.dll problems

    Haven't got VC6 installed anymore but since it's a compiler error my guess is that it's VC6 that's outdated. Check if shlobj.h contains a declaration for SHParseDisplayName.

    EDIT: Googled a bit and it seems the function was added 2005 and that VC6 support was provided by Windows Server 2003 SP1 Platform SDK - April 2005 Edition. Microsoft say: This SDK has been superseeded by the Windows SDK for Windows Server 2008.

    On the download page for 2003 SDK under System Requirements it's stated though:
    ...This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. Side by side installations are not supported.

    This might be a good opportunity to upgrade your about 14 years! or so old development environment...
    Last edited by S_M_A; January 25th, 2010 at 05:53 PM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Jan 2010
    Posts
    2

    Re: shell32.dll problems

    Yeah you are probably right about VS6 to old. I just haven't got the budget to buy VS 2010. Programming is just a hobby. So Linux is probably the logical choice for me.

    Thanks for your time.

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: [RESOLVED] shell32.dll problems

    Well you could go for a free express version (search for express on MS site or see my signature)
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured