Determine if only one instance is running: Difference between revisions
Content added Content deleted
m (clarified: copydata gets a copy of the command line) |
|||
Line 691: | Line 691: | ||
<lang Phix>include pGUI.e |
<lang Phix>include pGUI.e |
||
function copydata_cb(Ihandle /*ih*/, atom |
function copydata_cb(Ihandle /*ih*/, atom pCommandLine, integer size) |
||
-- (the first instance is sent a copy of the second one's command line) |
|||
printf(1,"COPYDATA(%s, %d)\n",{peek_string( |
printf(1,"COPYDATA(%s, %d)\n",{peek_string(pCommandLine), size}); |
||
return IUP_DEFAULT; |
return IUP_DEFAULT; |
||
end function |
end function |