UNICODE ostream

P

Philippe Mesmeur

hello everybody,

I would like my code accepts UNICODE streams.

I've got a component that writes data in an ostream

void MyComponent::write(ostream mystream);

Thus, if I want to write in a file, I give my component and instance of
an ofstream. This ofstream opens a file with its method "open", whose
prototype is the following one:

void open(const char *s, ios_base::eek:penmode mode = ios_base::eek:ut |
ios_base::trunc);

Until here everything is allright...

Now I would like to find a similar stream - usable with the method
"write", i.e. that inherits from "ostream" - that can open a file whose
name is UNICODE (useful if my component is used on a Japanese computer)

Do you know what can I do?
Thanks

Philippe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,802
Messages
2,569,663
Members
45,433
Latest member
andrewartemow

Latest Threads

Top