我用的VC6.0 下面是我的代码:void CAsdfasdfDlg::OnButton1(){// TODO: Add your control notification handler code hereHANDLE h=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);}错误提示:ompiling...asdfasdfDlg.cppC:\Program Files\Microsoft Visual Studio\MyProjects\进程查找\asdfasdf\asdfasdfDlg.cpp(176) : error C2065: 'CreateToolhelp32Snapshot' : undeclared identifierC:\Program Files\Microsoft Visual Studio\MyProjects\进程查找\asdfasdf\asdfasdfDlg.cpp(176) : error C2065: 'TH32CS_SNAPPROCESS' : undeclared identifierC:\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 castError executing cl.exe.asdfasdf.exe - 3 error(s), 0 warning(s)
1 回答
梦里花落0921
TA贡献1772条经验 获得超6个赞
CreateToolhelp32Snapshot
Requirements
Minimum supported clientWindows XP [desktop apps only]
Minimum supported serverWindows Server 2003 [desktop apps only]
Header TlHelp32.h
Library Kernel32.lib
DLL Kernel32.dll
_______
有没有包含头文件TlHelp32.h?
添加回答
举报
0/150
提交
取消