Glad and WGL

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 13 10:37:09 PST 2016


On Wednesday, 13 January 2016 at 18:34:14 UTC, Josh Phillips 
wrote:
> extern(Windows)
> LRESULT WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM 
> lParam)

You just need to explicitly mark it nothrow in the signature. Add 
`nothrow` to the end of the param list:

extern(Windows)
LRESULT WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM 
lParam) nothrow

and then you'll be cool


More information about the Digitalmars-d-learn mailing list