B
batconv
Unregistered / Unconfirmed
GUEST, unregistred user!
请看这段代码;
if GlobalFindAtom('ShowHKey') = 0 then
begin {注册全局热键Ctrl + Alt + U}
IDshow:=GlobalAddAtom('ShowHKey')-$C000;
RegisterHotKey(handle,IDshow,MOD_CONTROL+MOD_Alt,VK_U);
end else halt; //IDshow:=GlobalFindAtom('ShowHKey');
编译会出现错误“Project temp.exe raised exception class EAccessViolation with message 'Access violation at address 00475DDA in module ' temp.exe'. Read of address 013620F8'.Process stopped.use step or run to continue”
如果改用注释的那个句子,热键会有时能用有时不能用,请高手指教。
if GlobalFindAtom('ShowHKey') = 0 then
begin {注册全局热键Ctrl + Alt + U}
IDshow:=GlobalAddAtom('ShowHKey')-$C000;
RegisterHotKey(handle,IDshow,MOD_CONTROL+MOD_Alt,VK_U);
end else halt; //IDshow:=GlobalFindAtom('ShowHKey');
编译会出现错误“Project temp.exe raised exception class EAccessViolation with message 'Access violation at address 00475DDA in module ' temp.exe'. Read of address 013620F8'.Process stopped.use step or run to continue”
如果改用注释的那个句子,热键会有时能用有时不能用,请高手指教。