AU3中多个callback函数各自被不同DLL调用是不是可能被相互中断?
比如下面这样Local $handle = DllCallbackRegister("_CBgetData", "int", "hwnd;lparam")DllCall("my.dll", "int", "GetData", "ptr", DllCallbackGetPtr($handle), "lparam", 10)
Local $handle2 = DllCallbackRegister("_CBuseData", "int", "hwnd")
DllCall("my2.dll", "int", "UseData", "ptr", DllCallbackGetPtr($handle2))
Global $adata
........
Func _CBgetData($hWnd, $lParam)
$adata=$lParam+100
.......
Return 1
EndFunc
Func _CBuseData($hWnd)
.......
somefun($adata)
.......
Return 1
EndFunc有可能被相互中断的话,如何保证某个全局变量的一致性呢? 目前看不懂 好复杂,帮你顶
页:
[1]