Can you put the complete source code so that we can compile and see. In the above code you have lots of Macros that needs to be defined for successful compilation.