Click here to Skip to main content
15,846,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPassing multidimensional arrays to functions Pin
Royce Fickling15-May-09 10:45
Royce Fickling15-May-09 10:45 
AnswerRe: Passing multidimensional arrays to functions Pin
led mike15-May-09 11:19
led mike15-May-09 11:19 
QuestionRe: Passing multidimensional arrays to functions Pin
David Crow15-May-09 11:23
David Crow15-May-09 11:23 
QuestionWide char vs. ANSI char Pin
transoft15-May-09 8:32
transoft15-May-09 8:32 
AnswerRe: Wide char vs. ANSI char Pin
CPallini15-May-09 8:49
mveCPallini15-May-09 8:49 
AnswerRe: Wide char vs. ANSI char Pin
Rajesh R Subramanian16-May-09 1:20
professionalRajesh R Subramanian16-May-09 1:20 
GeneralRe: Wide char vs. ANSI char Pin
Joe Woodbury16-May-09 18:55
professionalJoe Woodbury16-May-09 18:55 
GeneralRe: Wide char vs. ANSI char [modified] Pin
Rajesh R Subramanian16-May-09 20:17
professionalRajesh R Subramanian16-May-09 20:17 
Joe Woodbury wrote:
"Hello World" is an ANSI string, even in a application build with UNICODE libraries.
L"Hello World" is the UNICODE string in either environment.


I wouldn't expect anyone reasonable to define strings like this, unless for a debate. My point was that he should not be including ANSI stuff into an Unicode application (why not Unicode?), as that might bring down the performance.

I assume the usage of generic text mapping routines and I could have specified it clearly. Does my comment make sense if string literals enclosed within the TEXT macro?

Rajesh R Subramanian wrote:

Also, if you write an application in ANSI, Windows will still have to convert everything to Unicode internally to work with it. So, theoretically your application must be faster if it is built for Unicode.


Joe Woodbury wrote:
Even the underlying API has both Wide and Ansi versions. Sometimes the strings in these are converted. Other times they are not.


It wasn't clear enough that I told "Windows" and not APIs? An API may have both versions, but when it has to pass on a string to Windows, it must be converted to Unicode. Even if a function returns an ANSI string, again, Windows actually returns a Unicode string and there happens another conversion which is not visible to the user calling the API and essentially the performance goes down.


It is a crappy thing, but it's life -^ Carlo Pallini

modified on Sunday, May 17, 2009 2:40 AM

QuestionCurious COM question - the case of the second exe server... Pin
Jim Crafton15-May-09 6:51
Jim Crafton15-May-09 6:51 
AnswerRe: Curious COM question - the case of the second exe server... Pin
Nemanja Trifunovic15-May-09 8:37
Nemanja Trifunovic15-May-09 8:37 
GeneralRe: Curious COM question - the case of the second exe server... Pin
CPallini15-May-09 8:49
mveCPallini15-May-09 8:49 
GeneralRe: Curious COM question - the case of the second exe server... Pin
Jim Crafton15-May-09 9:02
Jim Crafton15-May-09 9:02 
GeneralRe: Curious COM question - the case of the second exe server... Pin
CPallini15-May-09 12:48
mveCPallini15-May-09 12:48 
JokeRe: Curious COM question - the case of the second exe server... Pin
Rajesh R Subramanian16-May-09 2:50
professionalRajesh R Subramanian16-May-09 2:50 
GeneralRe: Curious COM question - the case of the second exe server... Pin
CPallini16-May-09 3:06
mveCPallini16-May-09 3:06 
GeneralRe: Curious COM question - the case of the second exe server... Pin
Jim Crafton15-May-09 8:55
Jim Crafton15-May-09 8:55 
GeneralRe: Curious COM question - the case of the second exe server... Pin
Rajesh R Subramanian16-May-09 0:23
professionalRajesh R Subramanian16-May-09 0:23 
Questionhi Pin
Mohammadj15-May-09 6:28
Mohammadj15-May-09 6:28 
AnswerRe: hi Pin
David Crow15-May-09 8:04
David Crow15-May-09 8:04 
GeneralWelcome again! Pin
CPallini15-May-09 8:28
mveCPallini15-May-09 8:28 
GeneralRe: hi Pin
Mohammadj15-May-09 10:04
Mohammadj15-May-09 10:04 
AnswerRe: hi Pin
David Crow15-May-09 10:15
David Crow15-May-09 10:15 
GeneralRe: hi Pin
Mohammadj15-May-09 10:30
Mohammadj15-May-09 10:30 
GeneralRe: hi Pin
David Crow15-May-09 10:35
David Crow15-May-09 10:35 
GeneralRe: hi Pin
Mohammadj15-May-09 10:37
Mohammadj15-May-09 10:37 

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.