<ma****@cinci.rr.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Hi,
I have a small application that displays an html file locally from the
hard drive.
Using Navigate2, I would like to launch the html from the same
directory using a relative path.
Right now I have:
Navigate2(_T("T:\\file.html"),NULL,NULL);
Instead of specifying the drive letter I would just like the program to
look in it's own directory. Is this possible?
This isn't really a C++ language question.
However, on the systems I work with, the "current" directory is often
specified as ".\" (or maybe ".\\", if \ is an escape character?), or as "./"
(again, perhaps that's ".//", I'm not sure). BUT!... the "current"
directory may not be what you think it is. You may need to query the system
for the path to "its own directory".
For the definitive answer, you should ask in a newsgroup where "Navigate2"
is a known term, since that's not part of the C++ language. Perhaps a
Windows newsgroup, on the news.microsoft.com server?
-Howard