# Problems with glfwSetWindowSizeCallback

**URL:** <https://discourse.glfw.org/t/problems-with-glfwsetwindowsizecallback/527>\
**Category:** support\
**Created:** [February 12, 2013, 10:31pm UTC](https://discourse.glfw.org/t/problems-with-glfwsetwindowsizecallback/527 "2013-02-12T22:31:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [February 12, 2013, 10:31pm UTC](https://discourse.glfw.org/t/problems-with-glfwsetwindowsizecallback/527/1 "2013-02-12T22:31:20Z")

</div>

**anonymous** wrote on [Tuesday, February 12, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/7eaf0ccd/#a5ea):

I have used “glfwSetWindowSizeCallback” in glfw 2.x.x but now since the latest versions I having huge problems setting it up.

This is what I try:  
glfwSetWindowSizeCallback(window, window\_resize\_callback(window, width, height));

Where window\_resize\_callback is a GLFWwindowsizefun.

I have tried to read the documentation but I would rather see an example of the new method in action.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [March 19, 2013, 10:33pm UTC](https://discourse.glfw.org/t/problems-with-glfwsetwindowsizecallback/527/2 "2013-03-19T22:33:33Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, March 19, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/7eaf0ccd/#5c9f):

Look at the examples that come with GLFW.
