| delorie.com/archives/browse.cgi | search |
| From: | Jason Stewart <jason_stewart AT my-deja DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Escape codes in directory paths |
| Date: | Mon, 20 Nov 2000 15:13:19 GMT |
| Organization: | Deja.com - Before you buy. |
| Lines: | 25 |
| Message-ID: | <8vbf29$d54$1@nnrp1.deja.com> |
| NNTP-Posting-Host: | 63.106.163.130 |
| X-Article-Creation-Date: | Mon Nov 20 15:13:19 2000 GMT |
| X-Http-User-Agent: | Mozilla/4.72 [en] (Windows NT 5.0; I) |
| X-Http-Proxy: | 1.0 x54.deja.com:80 (Squid/1.1.22) for client 63.106.163.130 |
| X-MyDeja-Info: | XMYDJUIDjason_stewart |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Greetings,
I am new to C++ programming with DOS. I am trying to open a file on
the network but I keep getting compiler errors (It thinks that my
directory paths are escape codes.)
EX:
std::ofstream siglog("f:\home\share\siglog.txt", ios::app);
I can change the path to forward slashes and it works, but when I need
to execute a system call using forward slashes The OS scolds me with an
Invalid switch error.
This might be more of a C++ question than a DJGPP question, but Ill ask
anyway...
Is there any way to override the escape codes so the compiler sees it as
a string or a directory path?
Thanks,
Jason
Sent via Deja.com http://www.deja.com/
Before you buy.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |