I want to compile an old (1998) implementation of Edge Collapse from Game Developer’s Magazine (Project file is compressed in “melax.zip”) on Visual Studio 2008.
On line 390 of winmain.cpp I get the following compile error:
winmain.cpp(390) : error C2664: 'ReleaseDC' : cannot convert parameter 1 from 'HDC' to 'HWND'
and again in line 439.
How can I fix this?
The arguments to
ReleaseDCare reversed in the call – he callsReleaseDC(hDC, hWnd), while the correct signature isEnjoy fixing a 13 year old bug 🙂