我实在是想不通就这样调用也会编译不通过。求高手指点迷津啊!

我用的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)

PIPIONE
浏览 86回答 1
1回答

梦里花落0921

CreateToolhelp32SnapshotRequirementsMinimum supported clientWindows XP [desktop apps only]Minimum supported serverWindows Server 2003 [desktop apps only]Header TlHelp32.hLibrary Kernel32.libDLL Kernel32.dll_______有没有包含头文件TlHelp32.h?
打开App,查看更多内容
随时随地看视频慕课网APP