try:
Function wglGetProcAddress:byte ptr(lpszProc$z)
$z automatically creates an ascii version of a BlitzMax string and frees it up once the function has been called and byte ptr is like void * in C and should be able to be cast to a function pointer in max although I'm not 100% on that...
you should also be adding the declaration to win32.mod/gdi32.bmx after wglMakeCurrent as an extern "win32" block dictate the functions use stdcall calling conventions and there are already some wgl declarations present in this file.
If you're not into remaking modules I would also suggest just sticking the declaration at the top of your source in an extern "win32" block as external function don't have to be declared in modules.
Function wglGetProcAddress:byte ptr(lpszProc$z)
$z automatically creates an ascii version of a BlitzMax string and frees it up once the function has been called and byte ptr is like void * in C and should be able to be cast to a function pointer in max although I'm not 100% on that...
you should also be adding the declaration to win32.mod/gdi32.bmx after wglMakeCurrent as an extern "win32" block dictate the functions use stdcall calling conventions and there are already some wgl declarations present in this file.
If you're not into remaking modules I would also suggest just sticking the declaration at the top of your source in an extern "win32" block as external function don't have to be declared in modules.