求高手告知:C++ 编程中HKEY不能识别

来源:百度知道 编辑:UC知道 时间:2024/05/21 20:42:09
看如下代码:
bool ReadReg(HKEY hKey,const string& s Path, Property & prop);

系统提示 'HEKY' cannot start a parameter declaration
请问我需要导入什麽特别的文件吗,还是应该怎样解决

你的文件类型类型写错了,开始的时候是HKEY hKey ,你写成了HEKY hKey。头文件就是<windows.h>和<stdio.h>就行了

未包含相应的头文件吧

我记得应该是要包含windows.h头文件的