|
From: | Piotr Szwed |
Subject: | save/restore on Win32 |
Date: | Fri, 9 Nov 2001 16:23:25 +0100 |
Hello,
I tried to debug CGI application running under
Windows and developed with VC++ 6.0 .
Cgicc::save() / Cgicc::restore()
methods do not work while uploading binary
files.
It seems to me that under Win32 platform you
should open the file in the binary mode.
CGICCNS CgiEnvironment::save(const STDNS
string& filename) const
{ LOGLN("CgiEnvironment::save") #if !defined WIN32
STDNS ofstream file( filename.c_str(), STDNS ios::out ); #else
STDNS ofstream file(
filename.c_str(), STDNS ios::out | STDNS ios::binary );
#endif
if( ! file )
throw STDNS runtime_error("I/O error"); .... }
Best regards,
Piotr Szwed
|
[Prev in Thread] | Current Thread | [Next in Thread] |