My question is how to embed opengl into mfc application? I know it is possible, but I can’t figure it out or find good source on internet. I have basic mfc application running, but how to initialize glfw, and how to create a window using glfw? Where do I write code for rendering?


I’m fairly sure that MFC and GLFW are mutually exclusive. If you want to use MFC, you’ll need to use MFC to create the window and use the wgl* functions directly to create an OpenGL context for the window.

A web search for “MFC OpenGL” suggests that there are examples out there.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.