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

rsk82 rsk82 at live.com
Sun Jan 27 10:58:58 PST 2013


On Sunday, 27 January 2013 at 18:26:04 UTC, John Chapman wrote:
> This must be declared at module level (not inside a function).

Ok, I've put it into module, linked in the module
pragma(lib, "user32.lib");
and
pragma(lib, "gdi32.lib");

all this works until I put

extern(Windows) ATOM RegisterClassExW(const WNDCLASSEXW *lpwcx);

on line 30, then I get as if this was a code not a new function 
import:

.\mod\myModule.d(30): Error: undefined identifier WNDCLASSEXW, 
did you mean struct WNDCLASSEXA?


More information about the Digitalmars-d mailing list