1>time.obj : error LNK2019: unresolved external symbol Process32First referenced in function WinMain
解决方案:
This function retrieves information about the next process recorded in a system snapshot.
BOOL WINAPI Process32Next(
HANDLE hSnapshot,
LPPROCESSENTRY32 lppe
);
...
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Tlhelp32.h.
Link Library: Toolhelp.lib.
So this means you need to add the toolhelp.lib to your project.
#include <Tlhelp32.h>
#pragma comment(lib,"toolhelp.lib")
You can use the compiler directive #pragma comment (lib,"toolhelp.lib") right after you include #include "tlhelp32.h"
Or you can add it to your project settings.
找到toolhelp.lib然后拷贝到你程序的目录下应用就好了