Re: set current worlking directory to executable path

2005-08-10 Thread Yogesh M
In windows environment path is set to executable path. it seems that there is no libpng.dll found in my system so the images dont load, [anyway i am not going to check whether the pixmap has loaded or not] and GetModuleFileName() alone is enough to get the executable path. thank you Lillqvist

Re: set current worlking directory to executable path

2005-08-09 Thread Tor Lillqvist
Yogesh M writes: > I am using Gtk in windows(as well as linux). I want to set the > environment path to executable path so i can load icons present in > the executable path. I will be happy if it works both on linux and > windows. On Linux, do a readlink on /proc/self/exe (if it exists), and g

set current worlking directory to executable path

2005-08-09 Thread Yogesh M
I am using Gtk in windows(as well as linux). I want to set the environment path to executable path so i can load icons present in the executable path. I will be happy if it works both on linux and windows. __ Do You Yahoo!? Tired of spam? Yahoo! M