我用的VC6.0 下面是我的代码:
void CAsdfasdfDlg::OnButton1()
{
// TODO: Add your control notification handler code here
HANDLE h=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
}
错误提示:
ompiling...
asdfasdfDlg.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\进程查找\asdfasdf\asdfasdfDlg.cpp(176) : error C2065: 'CreateToolhelp32Snapshot' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\进程查找\asdfasdf\asdfasdfDlg.cpp(176) : error C2065: 'TH32CS_SNAPPROCESS' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\进程查找\asdfasdf\asdfasdfDlg.cpp(176) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
asdfasdf.exe - 3 error(s), 0 warning(s)
梦里花落0921
相关分类