hProcess:=OpenProcess(PROCESS_ALL_ACCESS,false,hProcessId);
if hProcess=0 then exit;
上面两句代码,如果只要一句,该如何表示?
if hProcess:=OpenProcess(PROCESS_ALL_ACCESS,false,hProcessId)=0 then exit;
这样为什么不可以?
...全文
185打赏收藏
语法问题. 请教.
hProcess:=OpenProcess(PROCESS_ALL_ACCESS,false,hProcessId); if hProcess=0 then exit; 上面两句代码,如果只要一句,该如何表示? if hProcess:=OpenProcess(PROCESS_ALL_ACCESS,false,hProcessId)=0 then exit; 这样为什么不可以?