I am doing sample using DirectX 9 On Vs 2008/windows7. I am getting error.
1>------ Build started: Project: VideoCapture, Configuration: Debug Unicode Win32 ------ 1>Compiling...
1>VideoCaptureDlg.cpp
1>.\VideoCaptureDlg.cpp(169) : error C2065: 'SHGFP_TYPE_CURRENT' : undeclared identifier
1>.\VideoCaptureDlg.cpp(169) : error C3861: 'SHGetFolderPath': identifier not found
1>.\VideoCaptureDlg.cpp(173) : error C2065: 'SHGFP_TYPE_CURRENT' : undeclared identifier
1>.\VideoCaptureDlg.cpp(173) : error C3861: 'SHGetFolderPath': identifier not found
1>.\VideoCaptureDlg.cpp(1025) : warning C4244: 'argument' : conversion from 'int' to 'WORD', possible loss of data
1>.\VideoCaptureDlg.cpp(1180) : error C2065: 'SHGFP_TYPE_CURRENT' : undeclared identifier
1>.\VideoCaptureDlg.cpp(1180) : error C3861: 'SHGetFolderPath': identifier not found
1>.\VideoCaptureDlg.cpp(1184) : error C2065: 'SHGFP_TYPE_CURRENT' : undeclared identifier
1>.\VideoCaptureDlg.cpp(1184) : error C3861: 'SHGetFolderPath': identifier not found
I have added shlobj.h and shell32.lib as well still it is showing the same error.
I tried changing value of following macro in stdafx.h file based on Windows 7 and Internet Explorer 8 but it is showing conflict "C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting"
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Allow use of features specific to Windows XP or later.
#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0601 // Change this to the appropriate value to target other versions of Windows.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0800 // Change this to the appropriate value to target other versions of IE.
#endif
Any Suggestion for this Issue will be helpfull.