glDrawElements throws exception - what's wrong with my code?

I’m trying to render a simple triangle, using this tutorial.

However, an exception is thrown on this line of code :
glDrawElements(GL_TRIANGLES, m_indexCount, GL_UNSIGNED_INT, 0/*verts*/);

I don’t know what’s wrong. I have gone through the code numerous times, and can’t figure out, why I am having problems.
Here is my code :

Apparently, you or someone deleted this file. It redirects to:

(!) Deleted

The transfer you requested has been deleted.

Okay, so I made all the files available. You only need to link the opengl libraries.
Download the project from here. Then, there should be no errors. Hope you can help me with this. Thanks.

After a few days of troubleshooting, I finally discovered the problem was in the LoadExtensionList function. Changing the return value from false to 0, solved the problem.