CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Location
    beyond the pillars of hercules
    Posts
    295

    errors with 'shlobj.h' ?

    im using shlobj.h header on VC 6.0 with SDK February 2003 installed , and i get those 2 errors from the header file
    i googled alot but i couldnt find a solution, any1 knows why?
    thanks

    Code:
    C:\Program Files\Microsoft SDK\include\shobjidl.h(9315) : error C2061: syntax error : identifier 'IXMLDOMDocument'
    C:\Program Files\Microsoft SDK\include\shobjidl.h(9424) : error C2061: syntax error : identifier 'IXMLDOMDocument'

  2. #2
    Join Date
    Feb 2010
    Posts
    30

    Re: errors with 'shlobj.h' ?

    include\shobjidl.h

    it looks like you have a syntax error some where close to where the included file is(that is where an object that uses that file) , i don't know what that include file is used for and if you don't know, try looking for syntax errors through your .h and .c files from before your last build.

  3. #3
    Join Date
    Feb 2010
    Posts
    30

    Re: errors with 'shlobj.h' ?

    is this include file something you made? look through this file for a syntax error.

  4. #4
    Join Date
    May 2006
    Location
    beyond the pillars of hercules
    Posts
    295

    Re: errors with 'shlobj.h' ?

    no , "shobjidl" is not a header i created.... its probably included in "shlobj.h"

    a friend compiled the same project using VC 2008 without any problems thought...

  5. #5
    Join Date
    Feb 2010
    Posts
    30

    Re: errors with 'shlobj.h' ?

    look thru your code for syntax errors

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

    Re: errors with 'shlobj.h' ?

    Quote Originally Posted by Cpp_Noob View Post
    a friend compiled the same project using VC 2008 without any problems thought...
    Didn't that give you a hint on what's going on.

    From MS Windows® Server 2003 SP1 Platform SDK download page: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.

    The SDK names are a bit similar (and since the one you want is not downloadable anymore), are you sure you have the correct SDK installed?

    Edit: The best choice is of course to upgrade your environment but if you decide not to upgrade this link will be nice: http://blogs.msdn.com/windowssdk/arc...20/640172.aspx
    Last edited by S_M_A; February 28th, 2010 at 01:39 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

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