The tutorial shows you exactly where the macro goes. Did you look at the example code?

As for your error message, we have no idea what your code actually looks like. My guess is you have not #included something you should have.