Please refine the code . This is too old code and rises up a lot of linker errors when i integrate it in my app.