vb问题!!!!!!!!!!!急,高手快进~~~~

来源:百度知道 编辑:UC知道 时间:2024/05/21 16:14:25
前几天编了一个程序,生成后一些正常。。
而今天编了一个类似的程序,生成后说,错误424,需要对象。
然后又生成以前的那个程序,结果同上。。

但是运行前几天生成的exe却正常。。

请问为什么?
急。。
在这里回答也可以

http://zhidao.baidu.com/question/27752807.html
http://zhidao.baidu.com/question/27753457.html

我是威涛201

代码:
声明:
Const sEndProess As String = "cmd.exe" (这种程序有多个,此处均为病毒进程)
Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal dwFlags As Long, ByVal th32ProcessID As Long) As Long
Private Declare Function Process32First Lib "kernel32" (ByVal hSnapshot As Long, lppe As PROCESSENTRY32) As Long
Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapshot As Long, lppe As PROCESSENTRY32) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal blnheritHandle As Long, ByVal dwAppProcessId As Long) As Long

Private Declare Function TerminateProcess Lib "kernel32" (ByVal ApphProcess As Long, ByVal uExitCode As Long) As Long

Private Type PROCESSENTRY32
dwSize As Long
cntUsage As Long
th32P