Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem with SHGetFolderPath and Xtreme Toolkit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with SHGetFolderPath and Xtreme Toolkit

 Post Reply Post Reply
Author
Message
aimslife View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimslife Quote  Post ReplyReply Direct Link To This Post Topic: Problem with SHGetFolderPath and Xtreme Toolkit
    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
.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2007 at 11:08am
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
Back to Top
aimslife View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimslife Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2007 at 11:20am
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
.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.