I wrote a cvi application that will be called from another application based just on ansi c. Actually I would like to make sure wherever the application is on harddisk, it becomes the right path (with a function like GetModulDir from CVI) but just written in ansi c.