hello

i needed to make a callback function, i read a lots of articles and created this (i used this principe on simple code, and added it to my program)

Code:
class TKeyboard {
public :
...
void setWhilePressedCallback(void (*func) (int));
private :
...
};

void setWhilePressedCallback(void (*func) (int)) {
...
}



but now iam getting this error after i call
keyboard.setWhilePressedCallback(test); /*void test(int x) {}*/

1>camera.obj : error LNK2019: unresolved external symbol "public: void __thiscall TKeyboard::setWhilePressedCallback(void (__cdecl*)(int))" (?setWhilePressedCallback@TKeyboard@@QAEXP6AXH@Z@Z ) referenced in function _main
1>F:\Work\Visual Studio\my\camera\Debug\camera.exe : fatal error LNK1120: 1 unresolved externals


the full source is at
politea.sk/tmp/camera.rar

THANK YOU FOR HELP