Please check my comments. I compile the sample. And it reports error. I finally find that the problem is that GL function is invoked in WM_SIZE before it's imported. So I wonder whether this is the mistake in the sample or my computer problem. I comments in the blog. And I never get a reply.