I want to use this source code that you put, but with opengl 4.6 Does not run and gives an error
-
I want to use this source code that you put, but with opengl 4.6 Does not run and gives an error Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A00004D) "extern "C" int __stdcall wglMakeCurrent(struct HDC__ *,struct HGLRC__ *)" (?wglMakeCurrent@@$$J18YGHPAUHDC__@@PAUHGLRC__@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A00004E) "extern "C" struct HGLRC__ * __stdcall wglCreateContext(struct HDC__ *)" (?wglCreateContext@@$$J14YGPAUHGLRC__@@PAUHDC__@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A00004F) "extern "C" int __stdcall SetPixelFormat(struct HDC__ *,int,struct tagPIXELFORMATDESCRIPTOR const *)" (?SetPixelFormat@@$$J212YGHPAUHDC__@@HPBUtagPIXELFORMATDESCRIPTOR@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A000051) "extern "C" int __stdcall ChoosePixelFormat(struct HDC__ *,struct tagPIXELFORMATDESCRIPTOR const *)" (?ChoosePixelFormat@@$$J18YGHPAUHDC__@@PBUtagPIXELFORMATDESCRIPTOR@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A000053) "extern "C" int __stdcall SwapBuffers(struct HDC__ *)" (?SwapBuffers@@$$
-
I want to use this source code that you put, but with opengl 4.6 Does not run and gives an error Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A00004D) "extern "C" int __stdcall wglMakeCurrent(struct HDC__ *,struct HGLRC__ *)" (?wglMakeCurrent@@$$J18YGHPAUHDC__@@PAUHGLRC__@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A00004E) "extern "C" struct HGLRC__ * __stdcall wglCreateContext(struct HDC__ *)" (?wglCreateContext@@$$J14YGPAUHGLRC__@@PAUHDC__@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A00004F) "extern "C" int __stdcall SetPixelFormat(struct HDC__ *,int,struct tagPIXELFORMATDESCRIPTOR const *)" (?SetPixelFormat@@$$J212YGHPAUHDC__@@HPBUtagPIXELFORMATDESCRIPTOR@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A000051) "extern "C" int __stdcall ChoosePixelFormat(struct HDC__ *,struct tagPIXELFORMATDESCRIPTOR const *)" (?ChoosePixelFormat@@$$J18YGHPAUHDC__@@PBUtagPIXELFORMATDESCRIPTOR@@@Z) referenced in function "protected: int __clrcall OpenGLForm::COpenGL::MySetPixelFormat(struct HDC__ *)" (?MySetPixelFormat@COpenGL@OpenGLForm@@$$FI$AAMHPAUHDC__@@@Z) CppCLR_WinformsProjekt2 C:\Users\living with sweet lo\source\repos\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt2\CppCLR_WinformsProjekt.obj 1 Severity Code Description Project File Line Suppression State Error LNK2028 unresolved token (0A000053) "extern "C" int __stdcall SwapBuffers(struct HDC__ *)" (?SwapBuffers@@$$