错误信息如下:
--------------------Configuration: sportpro - Win32 Debug-----------------
Compiling...
sportproDlg.cpp
G:\mydir\sport\sportpro\sportproDlg.cpp(137) : error C2065: 'CSIDL_SYSTEM' :
undeclared identifier
Error executing cl.exe.
sportpro.exe - 1 error(s), 0 warning(s)相关代码:
SHGetSpecialFolderPath(NULL,strPath,CSIDL_SYSTEM,FALSE);如果CSIDL_SYSTEM换成CSIDL_PROGRAMS又不会出现错误,我用的系统是2k server
查MSDN发现:
CSIDL_SYSTEM
Version 5.0. System folder. A typical path is C:\WINNT\SYSTEM32.
~~~~~~~~~~~~这里是否表示这个Value只在V5.0的对应Dll中才有?在2k下怎样才能用它?CSIDL_PROGRAMS
File system directory that contains the user's program groups (which are als
o file system directories). A typical path is C:\Documents and Settings\user
name\Start Menu\Programs.
解决方案 »
- DLL怎么封装固定几种类型的模板?
- 奇怪的问题:调试时候会出现堆损坏,运行发布程序却不会,运行良好。
- 怎么实现通过鼠标移动来暂停,启动定时器
- 请教线程同步的问题
- 问了很多人:挑战性话题DECLARE_DYNCREATE 和 IMPLEMENT_DYNCREATE到底是什么?
- 我已经失去信心了
- 十万火急!高手帮帮忙!关于窗口之间的消息传递!
- 知道颜色数组的情况下怎么显示和保存位图?
- 有谁比较过自己封装的buffer类和pipe的性能?
- help!!!why don't help!!! 我的机器win98怎么在输入(win98登陆)密码后出现explorer出错!!!安全模式也不行·!!!
- 如何使对话框中的CComboBox控件,在dlg.DoModal()后得到输入焦点而且有输入光标?
- 怎样将DLL编译到EXE程序里,是在哪里设置?
#define _WIN32_WINNT 0x0500
the same. But now I have found where the problem is:I forgot the include file #include "shfolder.h",and this include file is not included in my vc6,so I have to download the latest win32 sdk pack.