Old bugs die hard:
wd&.> 'psel';'picon ',(jpath '~binary\j.exe'),' 0' NB. J crashes
here
Maybe this is the error you're running into. Make sure a form is selected
before you call wd 'picon'.
By the way, I believe there's a bug in the documentation;
~system/extras/help/user/wd_commands.htm says:
psel id ; select parent id to be target for subsequent commands
psel n ; select parent with qhwnp of n for subsequent command
But I don't believe wd 'psel ' accepts HWNDs anymore; only ids. Because the
page also says
qhwndx ; (win32) return HWND (handle) of application
qhwndp ; return HWND (handle) of current parent
But
wd 'psel ',wd 'qhwndx'
|domain error: wd
| wd'psel ',wd'qhwndx'
wd'qer'
bad id : 0
wd 'psel ',wd 'qhwndp'
|domain error: wd
| wd'psel ',wd'qhwndp'
wd'qer'
bad id : 0
Also, the example:
wd'picon "',(jsystempath 'system\examples\data\jy.ico'),'" 0'
should be changed to
wd'picon "',(jpath '~system\examples\data\jy.ico'),'" 0'
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm