不明错在哪儿
看我下段代码.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user3232.lib
.data
hInstance HINSTANCE ?
hCommandLine dd ?
;show STARTUPINFO ?
;info PROCESS_INFORMATION ?
exeName db "C:\Program Files\TTPlayer\TTPlayer.exe",0
.CODE
start:
invoke GetModuleHandle,NULL
mov hInstance,eax
invoke GetCommandLine
MOV hCommandLine,eax
invoke CreateProcess,NULL,addr exeName,NULL,NULL,TRUE,NULL,\
NULL,NULL,SW_SHOW,NULL
invoke ExitProcess,-1
end start
编译后出现"windows 出现技术问题",我把CreateProcess函数换成"invoke WinExec,addr exeName,NULL"便成功了,这是为什么?哪为能给我指点一下,谢谢!!!!
QQ:253169051
E-mail:chengiant@126.com