Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. 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

Scheduled Pinned Locked Moved Managed C++/CLI
graphicsgame-devhelpquestion
2 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SADEGH2077
    wrote on last edited by
    #1

    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@@$$

    L 1 Reply Last reply
    0
    • S SADEGH2077

      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@@$$

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      SADEGH2077 wrote:

      I want to use this source code that you put

      Who are you referring to? If you got the code from an article then please use the forum at the end of the article for your question. But please stop reposting it here.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups