Menu

#23 Controly - MSVS 2008 - error C3861: 'SHGetFolderLocation'

open
nobody
None
5
2010-01-07
2010-01-07
execjosh
No

I get these errors when trying to build in MSVS 2008:
Error 1 error C3861: 'SHGetFolderLocation': identifier not found launchy\plugins\controly\controly.cpp 148 controly
Error 2 error C3861: 'SHGetFolderLocation': identifier not found launchy\plugins\controly\ControlPanelItemFinder.cpp 475 controly
Error 3 error C3861: 'SHGetFolderLocation': identifier not found launchy\plugins\controly\ControlPanelItemFinder.cpp 691 controly

After some looking around, it seems that the redefinition of _WIN32_WINNT to 0x0400 introduced in revision 486 is to blame for this problem.

Attached are two proposals for a fix:
1. Remove the #define statement all together, because this kind of definition should be done at the project/makefile level
2. If the #define is absolutely necessary, then check the MSC version

Discussion

  • execjosh

    execjosh - 2010-01-07

    Diff between r485 and r486 for precompiled.h

     
  • execjosh

    execjosh - 2010-01-07

    Removal of #define statment

     
  • execjosh

    execjosh - 2010-01-07

    Checking of MSC version

     

Log in to post a comment.