we have a post for similar topic and step by step example: Using ArTextSysGetText() with C
I hope it helps Ciao Valerio