cannot initialize WNDCLASSW, WNDCLASSEX, WNDCLASSEXW window structs

Benjamin Thaut code at benjamin-thaut.de
Sun Jan 27 05:36:20 PST 2013


Am 27.01.2013 14:10, schrieb rsk82:
> WNDCLASS wc; - ok
> WNDCLASSA wc; - ok
> WNDCLASSW wc; - Error: undefined identifier WNDCLASSW, did you mean
> alias WNDCLASS?
> WNDCLASSEX wc; - Error: undefined identifier WNDCLASSEX, did you mean
> struct WNDCLASSEXA?
> WNDCLASSEXA wc; - ok
> WNDCLASSEXW wc; Error: undefined identifier WNDCLASSEXW, did you mean
> struct WNDCLASSEXA?
>
> code:
>
> import core.runtime;
> import core.sys.windows.windows;
> extern(Windows)
> int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
> lpCmdLine, int iCmdShow) {
>    WNDCLASSEXA wc;
>    return 0;
> }
>
> I most concerned about WNDCLASSEXW, that is the version I intend to use.

Well WNDCLASSEXW is not defined inside core.sys.windows.windows.
If you need it just look up the definition in MSDN and define it yourself.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list