Bug 8871 – Missing the RegisterClassExA function declaration in the windows header.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2012-10-22T13:32:00Z
Last change time
2015-06-09T05:14:44Z
Keywords
pull
Assigned to
alex
Creator
maidenphil

Comments

Comment #0 by maidenphil — 2012-10-22T13:32:05Z
You can find the RegisterClassA function in the windows header (core.system.windows.windows) but not the equivalent version for the WNDCLASSEXA structure. However, declaring it like this: extern( Windows ) export RegisterClassExA(...); And calling it Works fine for me (compiles and links, so the function definition is found). I think the solution is simply a matter of adding it to the windows header. I am using DMD 2.060 on my machine. Cheers!
Comment #1 by alex — 2012-10-22T13:36:47Z