title: SharpGL: Setting the version to 4.0 or a replacement for GLEW
body: <p>Currently I'm stuck making a C#-WPF-OpenGL application. I followed this <a href="http://www.codeproject.com/Articles/265903/Using-OpenGL-in-a-WPF-Application" rel="nofollow">http://www.codeproject.com/Articles/265903/Using-OpenGL-in-a-WPF-Application</a> tutorial and was able to run the sample project. However, the first call to a function that's not part of OpenGL 1.1.0 Fails, i.e my code Looks like this</p>
  
  <pre><code>private void OpenGLControl_OpenGLInitialized(object Sender, OpenGLEventArgs args)
  {
  OpenGL gl = args.OpenGL;
  
  GLuint glError;
  while ( (glError = gl.GetError()) != OpenGL.GL_NO_ERROR )
  {
      Console.WriteLine( gl.GetErrorDescription(glError) );
  }
  
  Console.WriteLine( gl.GetString(OpenGL.Version) ); //Prints out 1.1.0
  
  GLuint hVertexShader;
  hVertexShader = gl.CreateShader(OpenGL.GL_VERTEX_SHADER);//Compiles, but raises an exception, also would gl.CreateProgramm() or other functions
  
  
  
  }
  </code></pre>
  
  <p>Somehow this link <a href="https://github.com/dwmkerr/sharpgl/wiki/Specifying-OpenGL-Version" rel="nofollow">https://github.com/dwmkerr/sharpgl/wiki/Specifying-OpenGL-Version</a> can't help me to set the Version to 4.2. 
  So how can I achieve that?</p>