and the icon u use in the dialog should be
icon c:\windows\system\window.icon
not
icon c:\windows\system\window.ico