wglGetProcAddress()?

BlitzMax Forums/BlitzMax OpenGL Programming/wglGetProcAddress()?

This causes an "unrecognized calling convention" error:

Extern "OpenGL"
Function wglGetProcAddress:Byte Ptr(lpszProc$z)
EndExtern


Also tried "opengl32", same result.