Click here to Skip to main content
15,894,896 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionRe: Using microsoft STL and STLport in same project Pin
AVIJIT NANDI7-Feb-10 20:04
AVIJIT NANDI7-Feb-10 20:04 
AnswerRe: Using microsoft STL and STLport in same project Pin
Vishal Kumar Soni9-Feb-10 17:46
Vishal Kumar Soni9-Feb-10 17:46 
GeneralRe: Using microsoft STL and STLport in same project Pin
AVIJIT NANDI9-Feb-10 18:45
AVIJIT NANDI9-Feb-10 18:45 
GeneralRe: Using microsoft STL and STLport in same project Pin
sbansal714-Sep-11 14:38
sbansal714-Sep-11 14:38 
QuestionMy codecvt (a.k.a. facet) never gets called. Pin
John R. Shaw27-Jun-09 9:35
John R. Shaw27-Jun-09 9:35 
AnswerRe: My codecvt (a.k.a. facet) never gets called. Pin
Stuart Dootson28-Jun-09 23:37
professionalStuart Dootson28-Jun-09 23:37 
GeneralRe: My codecvt (a.k.a. facet) never gets called. Pin
John R. Shaw29-Jun-09 2:43
John R. Shaw29-Jun-09 2:43 
GeneralRe: My codecvt (a.k.a. facet) never gets called. Pin
Stuart Dootson29-Jun-09 3:16
professionalStuart Dootson29-Jun-09 3:16 
John R. Shaw wrote:
Something else I discovered was that the second template parameter has to be ‘char’ or it will not work. That is ‘unsigned char’ will not even work as the second parameter.

I need to dig up a copy of the standard to see if this is compliant and makes since, because having template parameters that can only be of a single integral type is illogical.


I think there are two pertinent ideas here - firstly, files are streams of bytes (that's the basic concept underlying file streams in C++), which is why they always convert to/from bytes. Secondly, codecvt facets can be used on their own, without streams.

So, say you'd read in a file converting from a byte stream to (say) UCS-2. Then you want to write the UTF-32 equivalent to a file. You could use a codecvt facet that could convert from UCS-2 to UTF-32. The example code in the codecvt::in documentation on MSDN[^] shows this sort of scenario.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionPossible to have a two-way Associative Arrays Pin
ComplexLifeForm25-Jun-09 2:30
ComplexLifeForm25-Jun-09 2:30 
AnswerRe: Possible to have a two-way Associative Arrays Pin
Andy Moore25-Jun-09 6:09
Andy Moore25-Jun-09 6:09 
GeneralRe: Possible to have a two-way Associative Arrays Pin
Stuart Dootson25-Jun-09 6:10
professionalStuart Dootson25-Jun-09 6:10 
AnswerRe: Possible to have a two-way Associative Arrays Pin
Stuart Dootson25-Jun-09 6:09
professionalStuart Dootson25-Jun-09 6:09 
GeneralRe: Possible to have a two-way Associative Arrays Pin
Kevin McFarlane4-Jul-09 6:01
Kevin McFarlane4-Jul-09 6:01 
GeneralRe: Possible to have a two-way Associative Arrays Pin
Stuart Dootson4-Jul-09 7:49
professionalStuart Dootson4-Jul-09 7:49 
AnswerRe: Possible to have a two-way Associative Arrays Pin
ComplexLifeForm25-Jun-09 7:01
ComplexLifeForm25-Jun-09 7:01 
QuestionHow to Implement RPC in windows XP Pin
suthakar5618-Jun-09 18:45
suthakar5618-Jun-09 18:45 
AnswerRe: How to Implement RPC in windows XP Pin
Stuart Dootson18-Jun-09 22:05
professionalStuart Dootson18-Jun-09 22:05 
AnswerRe: How to Implement RPC in windows XP Pin
led mike19-Jun-09 5:25
led mike19-Jun-09 5:25 
GeneralRe: How to Implement RPC in windows XP Pin
suthakar5619-Jun-09 5:38
suthakar5619-Jun-09 5:38 
GeneralRe: How to Implement RPC in windows XP Pin
led mike19-Jun-09 5:53
led mike19-Jun-09 5:53 
GeneralRe: How to Implement RPC in windows XP Pin
Stuart Dootson19-Jun-09 12:46
professionalStuart Dootson19-Jun-09 12:46 
GeneralRe: How to Implement RPC in windows XP Pin
suthakar5619-Jun-09 22:30
suthakar5619-Jun-09 22:30 
GeneralRe: How to Implement RPC in windows XP Pin
Stuart Dootson20-Jun-09 14:09
professionalStuart Dootson20-Jun-09 14:09 
GeneralRe: How to Implement RPC in windows XP Pin
suthakar5621-Jun-09 17:53
suthakar5621-Jun-09 17:53 
GeneralRe: How to Implement RPC in windows XP Pin
Stuart Dootson21-Jun-09 20:07
professionalStuart Dootson21-Jun-09 20:07 

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.