teee help again

gluTessCallback tess, GLU_TESS_BEGIN, glBegin ;
gluTessCallback tess, GLU_TESS_VERTEX, glVertex3dv ;
gluTessCallback tess, GLU_TESS_END, glEnd ;

Can someone tell me please what’s wrong in this code…(i know that there aren’t the ()!!! apart that ) it’s the example i found on opengl guide but it doesn’t work and i don’t know why.

it tells me this kind of error for the first and second gluTessCallFunc: cannot convert parameter 3 from ‘void (unsigned int)’ to ‘void (__stdcall *)(void)’

pls can someone resolve my huge problem… i saw many and many examples but are all the same and no one works…pls help me…tell me where i wrong

First, if you use .cpp files the source code file will be compiled as C++ code and in that case you need to put the callbacks inside an extern “C”{ } block, or rename the file to .c

The error message tells you that the calling convention is different between the callbacks and the prototype.

So the tesseletion functions wants __stdcall callback functions (this is default on VC++ and MinGW compilers).