Boost logo

Boost :

From: Ehsan Akhgari (ehsan_at_[hidden])
Date: 2003-09-15 06:21:25


> I am currently using MS VC++ 6 and their implementation of
> std::fstream also lacks Unicode support for file names. I am
> not sure about .net though.

Standard C++ does not require any std::basic_fstream ctor which takes a
wchar_t const *, and such a ctor is neither available in VC++ 6, 7, or
7.1. However, all these implementations do have an undocumented ctor
accepting a FILE*, so if you really need it, you can use _tfopen( ) (or
_wfopen( ) for wide characters only) to gain a FILE*, and pass it to the
ctor of std::basic_[i/o]fstream. But you have to remember that this is
non-standard and non-portable, and works only for VC++ Standard C++
library.

-------------
Ehsan Akhgari

List Owner: MSVC_at_[hidden]

[ Email: ehsan_at_[hidden] ]
[ WWW: http://www.beginthread.com/Ehsan ]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk