Jay wrote:
> Hello,
> I am writing a c++ program that stores some values in a config located
> in it's directory.
> is there a way in c++ to get the full path of the running program so I
> can open the file not relative to where I run it from but where it is
> located?
>
> Thanks
> Jay
>
The C++ language knows nothing of such things; it's inherently platform
specific -- and sometimes not even (reliably) possible.
Your best bet is to try a platform specific forum or find another way to
solve the problem.
Sorry, but HTH,
--ag
--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com (new post 8/5)
http://www.cafepress.com/goldsays
"If you have nothing to hide, you're not trying!"