maybe (but just maybe) it would work using the H file, because FILE * could perhaps be defined somehow in the H file. The same problem was with glQuadric in OpenGL, which was then solved by Ashish using the H file, which I subsequently only expanded . See how he called *quad here. I assume that FILE * should also be called in a very similar way.
And I confirm that the absence of BYVAL reliably crashes every program, I had a problem with that too, adding BYVAL fixed everything.
Code: (Select All)
/*
@Author
Ashish Kushwaha
*/
GLUquadric *quad;
//initialize earth
void initEarth ()
{
quad = gluNewQuadric();
return;
}
//draws earth
void drawEarth()
{
gluQuadricTexture(quad, 1);
gluSphere(quad, 3.5, 30, 30);
return;
}
And I confirm that the absence of BYVAL reliably crashes every program, I had a problem with that too, adding BYVAL fixed everything.