Click here to Skip to main content
15,892,537 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL interop with CLR Pin
HaniSalehi25-Apr-10 6:57
HaniSalehi25-Apr-10 6:57 
GeneralConversion of C++ templates into C code Pin
Arun Chakaravarthy28-Jun-05 22:30
Arun Chakaravarthy28-Jun-05 22:30 
GeneralRe: Conversion of C++ templates into C code Pin
CP Visitor29-Jun-05 4:14
CP Visitor29-Jun-05 4:14 
GeneralRe: Conversion of C++ templates into C code Pin
Jörgen Sigvardsson29-Jun-05 12:37
Jörgen Sigvardsson29-Jun-05 12:37 
GeneralRe: Conversion of C++ templates into C code Pin
toxcct29-Jun-05 5:53
toxcct29-Jun-05 5:53 
GeneralUnicode streams and ASCII files Pin
Patje28-Jun-05 4:19
Patje28-Jun-05 4:19 
GeneralRe: Unicode streams and ASCII files Pin
valikac28-Jun-05 11:38
valikac28-Jun-05 11:38 
GeneralRe: Unicode streams and ASCII files Pin
Patje28-Jun-05 12:28
Patje28-Jun-05 12:28 
Not exactly.
I want to write to (or read from) a stream without having to worry about whether the file is Ascii or Unicode.
Afaik, STL forces me to know beforehand what the file is and use either an ofstream (for Ascii) or a wofstream (for Unicode), which means that all output statements should be doubled in my application.
In my original post I gave a simple example for a reporting module.

The first code examples shows how to do it in Ascii only.

The second example shows how STL currently forces me to write this module if I want to support both Ascii and Unicode in my application.

The third example shows how I would hope to write it, at least if somebody has a brilliant idea.


Enjoy life, this is not a rehearsal !!!

GeneralRe: Unicode streams and ASCII files Pin
valikac28-Jun-05 12:38
valikac28-Jun-05 12:38 
GeneralRe: Unicode streams and ASCII files Pin
Bobby Mihalca30-Jun-05 22:25
Bobby Mihalca30-Jun-05 22:25 
GeneralRe: Unicode streams and ASCII files Pin
valikac1-Jul-05 8:19
valikac1-Jul-05 8:19 
Generalofstream adding in start of file Pin
SimpleProgramer28-Jun-05 0:56
SimpleProgramer28-Jun-05 0:56 
GeneralRe: ofstream adding in start of file Pin
CP Visitor28-Jun-05 6:57
CP Visitor28-Jun-05 6:57 
GeneralSTL Deque problem...again ! Pin
mmagnani7127-Jun-05 23:27
mmagnani7127-Jun-05 23:27 
GeneralRe: STL Deque problem...again ! Pin
Stuart Dootson28-Jun-05 21:36
professionalStuart Dootson28-Jun-05 21:36 
GeneralRe: STL Deque problem...again ! Pin
mmagnani7128-Jun-05 22:54
mmagnani7128-Jun-05 22:54 
GeneralProblems with toolbar when using TBSTYLE_EX_MIXEDBUTTONS Pin
retro_coder27-Jun-05 21:43
retro_coder27-Jun-05 21:43 
GeneralSTL Notation Pin
Jack Puppy27-Jun-05 17:20
Jack Puppy27-Jun-05 17:20 
GeneralRe: STL Notation Pin
Christian Graus27-Jun-05 18:17
protectorChristian Graus27-Jun-05 18:17 
GeneralRe: STL Notation Pin
Douglas Troy1-Jul-05 7:01
Douglas Troy1-Jul-05 7:01 
Questiondoes BHO have max memory limit? Pin
petevam26-Jun-05 23:11
petevam26-Jun-05 23:11 
AnswerRe: does BHO have max memory limit? Pin
Douglas Troy27-Jun-05 4:47
Douglas Troy27-Jun-05 4:47 
GeneralRe: does BHO have max memory limit? Pin
petevam27-Jun-05 6:20
petevam27-Jun-05 6:20 
GeneralDS_FIXEDSYS in WTL project VS2005 Pin
vassilux@26-Jun-05 4:18
vassilux@26-Jun-05 4:18 
GeneralRe: DS_FIXEDSYS in WTL project VS2005 Pin
toxcct26-Jun-05 5:19
toxcct26-Jun-05 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.