I am trying to run the triangle.cpp project (the first one) in the OpenGL SuperBible 5th. edition. I am using Visual C++ 2010 Express. I can compile and build the project but when I try to run it I get an unhandled exception at the line marked with 12 asterisks in the code below. I would be very grateful for help solving this!!
void SetupRC()
{
// Blue background
glClearColor(0.0f, 0.0f, 1.0f, 1.0f );
shaderManager.InitializeStockShaders();
// Load up a triangle
GLfloat vVerts[9] = { -0.5f, 0.0f, 0.0f, 0.5f,
0.0f, 0.0f, 0.0f, 0.5f, 0.0f }; //************
triangleBatch.Begin(GL_TRIANGLES, 3);
triangleBatch.CopyVertexData3f(vVerts);
triangleBatch.End();
}