Visual Studio 2005 提示 error C3861: 'SHCreateDirectory': identifier not found
来源:互联网 发布:linux中的socket编程 编辑:程序博客网 时间:2024/06/06 14:10
今天在用vs2005 练习的时候提示, error C3861: 'SHCreateDirectory': identifier not found
原来是'SHCreateDirectory'函数没有定义。
查看MSDN看发现在shlobj.h中定义的,但是为什么还是提示找不到定义呢。
打开shlobj.h文件,搜索SHCreateDirectory的定义,是有的,原因在于这个函数在IE6.0版本以上才支持。
#if (_WIN32_IE >= 0x0601)SHSTDAPI_(int) SHCreateDirectory(HWND hwnd, LPCWSTR pszPath);#endif // (_WIN32_IE >= 0x0601)
visual studio 2005默认是使用IE6.0,现在升级到IE8.0,VS默认生成的IE版本没有作相应的调整。
因此,在VS默认生成的头文件stdafx.h中要修改相应的IE版本定义。如下:
#ifndef _WIN32_IE// 允许使用特定于 IE 6.0 或更高版本的功能。#define _WIN32_IE 0x0600// 将此值更改为相应的值,以适用于 IE 的其他版本。值。#endif
将_WIN32_IE 版本号定义作相应的修改,问题解决了。
- Visual Studio 2005 提示 error C3861: 'SHCreateDirectory': identifier not found
- error C3861: 'cvCreateHidHaarClassifierCascade': identifier not found
- error C3861: 'TryEnterCriticalSection': identifier not found
- error C3861: 'round': identifier not found
- error C3861: 'round': identifier not found
- WTL error C3861: 'DDX_Control': identifier not found
- error C3861: identifier not found | 找不到标识符
- “error C3861: 'random': identifier not found”解决办法
- error C3861: 'AtlLoadSystemLibraryUsingFullPath': identifier not found
- error C3861: ‘back_inserter': identifier not found
- error C3861: 'ASSERT': identifier not found
- error C3861: 'assert': identifier not found
- Error 13 error C3861: 'GetPrivateProfileString': identifier not found
- vs2005 下error C3861: 'GetEventData': identifier not found 解决方法
- libavutil\common.h(184) : error C3861: 'UINT64_C': identifier not found
- error C3861: “setw”: 找不到标识符;error C3861:'setw': identifier not found
- error C2065: 'fstream' : undeclared identifier error C3861: 'opfile': identifier not found
- visual studio 2015: error C3861
- office2003、2007、2010套件无法卸载的解决方案
- 第十周实验报告(五)
- 什么是核心竞争力
- Eatery更新日志
- Android面试准备复习之Android知识点大扫描 .
- Visual Studio 2005 提示 error C3861: 'SHCreateDirectory': identifier not found
- Android日记之2012/01/13
- DRY原则——忘记过去就得再来一遍
- 【Linux】 常用的linux 命令
- Qt4中ui文件的使用方法:
- 2011年总结
- vim 中文乱码问题解决方法
- int float double 最大值,最小值
- 物化视图概要