OpenGL API-based Code - Detail Listing
OpenGL Win32 Sample code
SGI
/resources/code/samples/win32_tutorial/
Windows 95/NT specific programs intended to be a tutorial for those getting started with OpenGL and Win32 including mouse events, pixel zoom, Window DIB, and more.
Page 1 of 1 pages
Next entry: An Interactive Introduction To OpenGL Programming - Siggraph 2001 Course
Previous entry: More sophisticated OpenGL Samples
This page has been viewed 483548 times •

On windows XP (i don’t know if it was different in 95/NT 4.. probably not)
ReleaseDC(hDC, hWnd);
should be:
ReleaseDC(hWnd, hDC);
because the api is:
WINUSERAPI
int
WINAPI
ReleaseDC(
__in_opt HWND hWnd,
__in HDC hDC);
Posted by (JavaScript must be enabled to view this email address) on 03/05 at 02:49 AM