UINT CRegistryScan::RegScan(LPVOID pParam)
{
HKEY hKey[10];
sRegScan* Info=(sRegScan*)pParam;
/*line84*/ if((Info->dwCheck®_ERROR_CLASSES) ==REG_ERROR_CLASSES)
hKey[0]=HKEY_LOCAL_MACHINE;
CStringArray str;
str.Add("HKEY_LOCAL_MACHINE");
CRegistryScan* pDlg;
HWND hWnd=(HWND)pParam;
pDlg=(CRegistryScan *)CRegistryScan::FromHandle(Info->hWnd);
::SetTimer(hWnd,IDM_SCAN_REFRESH,10,NULL);
EnmuKey(&hKey[0],1,str[0] ,Info->hWnd);
::strcpy(szPath,"Finish!!");
return true;
}报错:
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2143: syntax error : missing ')' before ';'
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2143: syntax error : missing ')' before ';'
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2059: syntax error : ')'
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : warning C4390: ';' : empty controlled statement found; is this the intent?
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2143: syntax error : missing ';' before '=='
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2059: syntax error : ')'为什么?
{
HKEY hKey[10];
sRegScan* Info=(sRegScan*)pParam;
/*line84*/ if((Info->dwCheck®_ERROR_CLASSES) ==REG_ERROR_CLASSES)
hKey[0]=HKEY_LOCAL_MACHINE;
CStringArray str;
str.Add("HKEY_LOCAL_MACHINE");
CRegistryScan* pDlg;
HWND hWnd=(HWND)pParam;
pDlg=(CRegistryScan *)CRegistryScan::FromHandle(Info->hWnd);
::SetTimer(hWnd,IDM_SCAN_REFRESH,10,NULL);
EnmuKey(&hKey[0],1,str[0] ,Info->hWnd);
::strcpy(szPath,"Finish!!");
return true;
}报错:
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2143: syntax error : missing ')' before ';'
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2143: syntax error : missing ')' before ';'
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2059: syntax error : ')'
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : warning C4390: ';' : empty controlled statement found; is this the intent?
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2143: syntax error : missing ';' before '=='
G:\My Documents\我的工程\White Magic\RegistryScan.cpp(84) : error C2059: syntax error : ')'为什么?
解决方案 »
- GDI绘图
- 这样在windows右键菜单上添加菜单项后,为什么会和Win 7 X64的菜单冲突?
- 关于右键弹出菜单
- 我该不该辞职?是不是可以辞职?
- 请大诗歌解释一下:DirectX、Direct2D、Direct3D、OpenGl的概念好吗?
- 怎样改变菜单的大小?(高分求) 400
- 为什么我用CFile::Rename(OldFileName,NewFileName)有时会提示改名出错?
- 关于RecordSet的m_strFilter 的问题!100(1次)
- 一个ping功能的程序,在dos下可以,做成函数就有内存泄露
- 高手请进------一个关于 CDC 类的问题?
- 一个简单的进程之间的通讯问题,来着有分!
- richedit的问题???
#define REG_ERROR_CLASSES ...;
了,改成
#define REG_ERROR_CLASSES ...
应该就好了
贴 REG_ERROR_CLASSES 的定义来看看。