# Using GLFWCALL on class functions?

**URL:** <https://discourse.glfw.org/t/using-glfwcall-on-class-functions/333>\
**Category:** support\
**Created:** [April 3, 2005, 7:44am UTC](https://discourse.glfw.org/t/using-glfwcall-on-class-functions/333 "2005-04-03T07:44:53Z")\
**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:** [April 3, 2005, 7:44am UTC](https://discourse.glfw.org/t/using-glfwcall-on-class-functions/333/1 "2005-04-03T07:44:53Z")

</div>

**nobody** wrote on [Sunday, April 03, 2005](https://sourceforge.net/p/glfw/discussion/247562/thread/711f1caa/#d393):

I get alot of errors when i try to define a function within a class with GLFWCALL:

class myclass  
{  
void GLFWCALL doSomething(void\* arg);  
}

I get these errors even when it is a static function. Any help will be much appreciated.

---

<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:** [April 4, 2005, 1:12pm UTC](https://discourse.glfw.org/t/using-glfwcall-on-class-functions/333/2 "2005-04-04T13:12:40Z")

</div>

**nobody** wrote on [Monday, April 04, 2005](https://sourceforge.net/p/glfw/discussion/247562/thread/711f1caa/#d393/e5f2):

Be more precise about "alot of errors" please

I’ve a class (singleton) named CMouseInput with GLFWCALL functions and work fine  
I built the class to intercept and translate mouse events

ShenronFR
