now I didn't have RegisterClassExW, how to import that ?

John Chapman johnch_atms at hotmail.com
Sun Jan 27 10:26:03 PST 2013


On Sunday, 27 January 2013 at 18:01:38 UTC, rsk82 wrote:
> On Sunday, 27 January 2013 at 17:51:40 UTC, Benjamin Thaut 
> wrote:
>> extern(Windows) <insert function definition here>
>
> I am not sure what I was supposed to do, so I did this:
>
> extern(Windows) ATOM RegisterClassExW(const WNDCLASSEXW *lpwcx);

This must be declared at module level (not inside a function).

> ATOM class_atom = RegisterClassExW(&wc);
>
> and got linker error:
>
> OPTLINK (R) for Win32  Release 8.00.12
> Copyright (C) Digital Mars 1989-2010  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> test.obj(test)
>  Error 42: Symbol Undefined 
> __D4test8doWindow6__ctorMFZC4test8doWindow16RegisterClassExWWxPS4test8doWindow6__ctorMFZC4test8doWindow11WNDCLASSEXWZt at 4
> --- errorlevel 1



More information about the Digitalmars-d mailing list