Click here to Skip to main content
15,910,083 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: find_if and function objects ('functors') Pin
Jörgen Sigvardsson5-Jul-05 12:37
Jörgen Sigvardsson5-Jul-05 12:37 
GeneralRe: find_if and function objects ('functors') Pin
Rob Caldecott6-Jul-05 0:21
Rob Caldecott6-Jul-05 0:21 
GeneralMFC events, in ATL with MFC support controls Pin
greekgoddj4-Jul-05 22:01
greekgoddj4-Jul-05 22:01 
Generalhandling WM_MOUSEWHEEL between two views Pin
retro_coder4-Jul-05 1:01
retro_coder4-Jul-05 1:01 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Cedric Moonen4-Jul-05 23:13
Cedric Moonen4-Jul-05 23:13 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Jörgen Sigvardsson6-Jul-05 1:01
Jörgen Sigvardsson6-Jul-05 1:01 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Cedric Moonen6-Jul-05 4:00
Cedric Moonen6-Jul-05 4:00 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Jörgen Sigvardsson6-Jul-05 1:08
Jörgen Sigvardsson6-Jul-05 1:08 
GeneralSorry! An error occured while generating the object Pin
AdyOS1-Jul-05 0:12
AdyOS1-Jul-05 0:12 
GeneralRe: Sorry! An error occured while generating the object Pin
toxcct1-Jul-05 0:23
toxcct1-Jul-05 0:23 
GeneralRe: Sorry! An error occured while generating the object Pin
AdyOS1-Jul-05 0:44
AdyOS1-Jul-05 0:44 
GeneralRe: Sorry! An error occured while generating the object Pin
AdyOS1-Jul-05 1:01
AdyOS1-Jul-05 1:01 
GeneralRe: Sorry! An error occured while generating the object Pin
Cedric Moonen4-Jul-05 0:53
Cedric Moonen4-Jul-05 0:53 
GeneralATL interop with CLR Pin
squawkbox30-Jun-05 23:28
squawkbox30-Jun-05 23:28 
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 

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.