thanks for all your hints.
In fact,I have an app that implements a dll.
the dialog belonging to a class is showed in the win32 ap
sucessfully.
that is ok!

Surely I can create a dialog successfully without register a class.
but it seems that is necessary when i want to add a icon for th
dialog.

it still failed!

the differences between my test app and my ddk are:
(1) ddk uses unicode,
(2) the instance of ddk is the dllmain 1st input parameter,while
the instance of my test program is winmain 1st input parameter,

BTW,i dont want to use MFC or any class,only api funcs are used.
Thanks


-
hy
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Re: error on CreateDialog by Alexander

Alexander
Tue Oct 11 22:30:22 CDT 2005

Use WM_SETICON to set an icon for the dialog.

"hyf" <hyf.1wrqhn@mail.codecomments.com> wrote in message
news:hyf.1wrqhn@mail.codecomments.com...
>
> thanks for all your hints.
> In fact,I have an app that implements a dll.
> the dialog belonging to a class is showed in the win32 app
> sucessfully.
> that is ok!
>
> Surely I can create a dialog successfully without register a class.
> but it seems that is necessary when i want to add a icon for the
> dialog.
>
> it still failed!
>
> the differences between my test app and my ddk are:
> (1) ddk uses unicode,
> (2) the instance of ddk is the dllmain 1st input parameter,while
> the instance of my test program is winmain 1st input parameter,
>
> BTW,i dont want to use MFC or any class,only api funcs are used.
> Thanks.
>
>
>
> --
> hyf
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>