Error SHGetFolderPath
-
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 -
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#define _WIN32_IE 0x0500
instdafx.h
Owner drawn Jesus Loves
-
#define _WIN32_IE 0x0500
instdafx.h
Owner drawn Jesus Loves
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 -
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, 2006Why are you defining
_WIN32_IE
twice.
Owner drawn Jesus Loves
-
Why are you defining
_WIN32_IE
twice.
Owner drawn Jesus Loves
-
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
It's working here fine.
Owner drawn Jesus Loves
-
It's working here fine.
Owner drawn Jesus Loves
-
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, 2006See 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
-
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, 2006sunit5 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