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. Error SHGetFolderPath

Error SHGetFolderPath

Scheduled Pinned Locked Moved C / C++ / MFC
helpjson
9 Posts 4 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.
  • S Offline
    S Offline
    sunit5
    wrote on last edited by
    #1

    I am using API SHGetFolderPath and mentioned #include<shlobj.h> header file in stdafx.h but it is showing me error error C2065: 'SHGetFolderPath' : undeclared identifier Pls help me .Thanx in advance never say die -- modified at 2:51 Monday 13th February, 2006

    O M T 3 Replies Last reply
    0
    • S sunit5

      I am using API SHGetFolderPath and mentioned #include<shlobj.h> header file in stdafx.h but it is showing me error error C2065: 'SHGetFolderPath' : undeclared identifier Pls help me .Thanx in advance never say die -- modified at 2:51 Monday 13th February, 2006

      O Offline
      O Offline
      Owner drawn
      wrote on last edited by
      #2

      #define _WIN32_IE 0x0500 in stdafx.h


      Owner drawn Jesus Loves

      S 1 Reply Last reply
      0
      • O Owner drawn

        #define _WIN32_IE 0x0500 in stdafx.h


        Owner drawn Jesus Loves

        S Offline
        S Offline
        sunit5
        wrote on last edited by
        #3

        In the header file shlobj.h this mentioned #ifndef _WIN32_IE #define _WIN32_IE 0x0501 #else #if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500) #error _WIN32_IE setting conflicts with _WIN32_WINNT setting #endif #endif still i mentioned in the stdafx.h #ifndef _WIN32_IE #define _WIN32_IE 0x0500 #endif include <shlobj.h> but it is still showing me same error.Pls help me never say die -- modified at 4:08 Monday 13th February, 2006

        O 1 Reply Last reply
        0
        • S sunit5

          In the header file shlobj.h this mentioned #ifndef _WIN32_IE #define _WIN32_IE 0x0501 #else #if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500) #error _WIN32_IE setting conflicts with _WIN32_WINNT setting #endif #endif still i mentioned in the stdafx.h #ifndef _WIN32_IE #define _WIN32_IE 0x0500 #endif include <shlobj.h> but it is still showing me same error.Pls help me never say die -- modified at 4:08 Monday 13th February, 2006

          O Offline
          O Offline
          Owner drawn
          wrote on last edited by
          #4

          Why are you defining _WIN32_IE twice.


          Owner drawn Jesus Loves

          S 1 Reply Last reply
          0
          • O Owner drawn

            Why are you defining _WIN32_IE twice.


            Owner drawn Jesus Loves

            S Offline
            S Offline
            sunit5
            wrote on last edited by
            #5

            Thats why i used #ifndef _WIN32_IE Ok I remove it but it is showing me same error #ifndef _WIN32_IE #define _WIN32_IE 0x0500 #endif Pls help me.Thanx in advance never say die -- modified at 4:11 Monday 13th February, 2006

            O 1 Reply Last reply
            0
            • S sunit5

              Thats why i used #ifndef _WIN32_IE Ok I remove it but it is showing me same error #ifndef _WIN32_IE #define _WIN32_IE 0x0500 #endif Pls help me.Thanx in advance never say die -- modified at 4:11 Monday 13th February, 2006

              O Offline
              O Offline
              Owner drawn
              wrote on last edited by
              #6

              It's working here fine.


              Owner drawn Jesus Loves

              S 1 Reply Last reply
              0
              • O Owner drawn

                It's working here fine.


                Owner drawn Jesus Loves

                S Offline
                S Offline
                sunit5
                wrote on last edited by
                #7

                I am using it in a Console Win32 Application in VC 6.Is this troubling me. never say die -- modified at 4:34 Monday 13th February, 2006

                1 Reply Last reply
                0
                • S sunit5

                  I am using API SHGetFolderPath and mentioned #include<shlobj.h> header file in stdafx.h but it is showing me error error C2065: 'SHGetFolderPath' : undeclared identifier Pls help me .Thanx in advance never say die -- modified at 2:51 Monday 13th February, 2006

                  M Offline
                  M Offline
                  Michael Dunn
                  wrote on last edited by
                  #8

                  See the FAQ 2.2 I'm trying to call a Windows API, but the compiler gives an undeclared identifier error (C2065). Why?[^] --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

                  1 Reply Last reply
                  0
                  • S sunit5

                    I am using API SHGetFolderPath and mentioned #include<shlobj.h> header file in stdafx.h but it is showing me error error C2065: 'SHGetFolderPath' : undeclared identifier Pls help me .Thanx in advance never say die -- modified at 2:51 Monday 13th February, 2006

                    T Offline
                    T Offline
                    ThatsAlok
                    wrote on last edited by
                    #9

                    sunit5 wrote:

                    I am using API SHGetFolderPath and mentioned #include header file in stdafx.hbut it is showing me errorerror C2065: 'SHGetFolderPath' : undeclared identifier

                    Are you using Visual Studio 6 or .Net 2003

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta VC Forum Q&A :- I/ IV

                    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