it says " 'drawFrame' was not declared in this scope ". Can somebody explain what could be error be?
As wild guess I would say that the problem is that drawFrame is possibly a function or a variable that is not declared in the relevant scope if indeed it is declared at all.
If you post your code and the full error message it would help, don't you think ?