弱问
GR 2004-01-29 05:48:52 今天差点发疯.
PROCESSENTRY32 PDB = {0};
PDB.dwSize = sizeof(PROCESSENTRY32); //这里有一点莫名其妙这段定义如果在main之前就错误?
这两句话我如果定义在main之前就五个错误
--------------------Configuration: VIR KILLER - Win32 Debug--------------------
Compiling...
VIR KILLER.CPP
C:\荣哥自己的程序\VIR KILLER\VIR KILLER.CPP(13) : error C2143: syntax error : missing ';' before '.'
C:\荣哥自己的程序\VIR KILLER\VIR KILLER.CPP(13) : error C2501: 'PDB' : missing storage-class or type specifiers
C:\荣哥自己的程序\VIR KILLER\VIR KILLER.CPP(13) : error C2371: 'PDB' : redefinition; different basic types
C:\荣哥自己的程序\VIR KILLER\VIR KILLER.CPP(12) : see declaration of 'PDB'
C:\荣哥自己的程序\VIR KILLER\VIR KILLER.CPP(13) : error C2143: syntax error : missing ';' before '.'
C:\荣哥自己的程序\VIR KILLER\VIR KILLER.CPP(106) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.
VIR KILLER.OBJ - 5 error(s), 0 warning(s)
************************************************************************
/*------------------------------------------------------------
杀毒通用模版,ver :win2k
(C) GR.HZ.2004
------------------------------------------------------------*/
#include <windows.h>
#include <tlhelp32.h>
#include <stdio.h>
//#define _UNICODE
HANDLE hSnapshot = NULL;
HANDLE hDest = NULL; //目标进程句柄,
DWORD PID = 0;
PROCESSENTRY32 PDB = {0};
PDB.dwSize = sizeof(PROCESSENTRY32); //这里有一点莫名其妙这段定义如果在main之前就错误?
main()
{}
我把它放在main里面就完全没问题?抓狂了.