Hi, I’m having some problems compiling my code using wglGetProcAddress…
I’m using VC++ 6 SP5 on Win2k for reference.
Whenever I assign the function pointer, it gives me an error:
error C2440: ‘=’ : cannot convert from ‘int (__stdcall *)(void)’ to 'void (__stdcall *)(unsigned int,float)
I get similar (the parameters vary with the GL call I’m assigning) errors for EVERY assignment I do (loading each OpenGL function from the library).
Now, this is with the file haivng a .cpp extension, if I change it to a .c extension, the compiler just gives a warning (number #4113 I think) and carries on happily.
While I’d like to say it’s a solution just to have it as a .c file, I’d like to know if anybody else has encountered such a problem and what can be done to resolve it short of changing the file extension.
Thanks for any help,
-Mezz