Problem with SHGetFolderPath and Xtreme Toolkit |
Post Reply |
Author | |
aimslife
Newbie Joined: 19 January 2007 Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 15 February 2007 at 10:57am |
Hi,
i made a SDI application in vs2k5. In view class i tried to use SHGetFolderPath() function and include shlobj.h header files on the top.. but some how it is not working and in shlobj.h header file few lines of code are dimmed out #ifndef _WINRESRC_ #ifndef _WIN32_IE #define _WIN32_IE 0x0501 <<< this line is dimmed/grayed like #else #if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500) #error _WIN32_IE setting conflicts with _WIN32_WINNT setting #endif #endif but when i tried to use SHGetFolderPath() function in any sample project of Xtreme Toolkit, then its works fine and no problem comes with it... i made all project settings as like in sample project but still SHGetFolderPath() function is not found... i made Standard MFC SDI application to test this function, either SHGetFolderPath() function working or not... but it was working fine... please guide me, what to do solve this problem??? is this problem related to Xtreme Toolkit Api's that wheneven I include its libs and headers the SHGetFolderPath() stops working. |
|
regards,
-aims . |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Add to your stdafx.h:
#if _MSC_VER > 1200
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later. #define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #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 4.0 or later.
#define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later. #endif #endif
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
aimslife
Newbie Joined: 19 January 2007 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Hi Oleg,
Thanks, now its working... the problem related to _WIN32_IE macro... some how when we made SDI application with Xtreme Toolkit, it generates _WIN32_IE macro code with 0x0400 value... thats way SHGetFolderPath() function was not working... Thanks Oleg... |
|
regards,
-aims . |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |