I've never used DCX but based on the error it seems pretty clear that you're passing an invalid window handle. And looking at your code you're using $chanset(dcx).hwnd - which unless you've created a $chanset alias should actually be $dialog(chanset).hwnd.


Spelling mistakes, grammatical errors, and stupid comments are intentional.