The second parmeter of CreateDialog is not the window class name but the dialog template name.
In your particular case it has to be MAKEINTRESOURCE(IDRESULTS).
It is not possible to create a...