glDrawRangeElements

I am trying to load the GL extension that allows me to use glDrawRangeElements in VC++6. I have the glext.h header installed and in the declaration section of my .c file I have:

PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) wglGetProcAddress(“glDrawRangeElements”);
assert (glDrawRangeElements);

I get an error C2099: initializer is not a constant

How do I install this function??

Try passing “glDrawRangeElementsEXT” to wglGetProcAddress instead.

[This message has been edited by shinpaughp (edited 03-04-2003).]