Click here to Skip to main content
15,904,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UNICODE Pin
Jose Lamas Rios7-Jul-05 18:09
Jose Lamas Rios7-Jul-05 18:09 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 8:47
John R. Shaw8-Jul-05 8:47 
GeneralRe: UNICODE Pin
Jose Lamas Rios8-Jul-05 10:10
Jose Lamas Rios8-Jul-05 10:10 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 10:55
John R. Shaw8-Jul-05 10:55 
GeneralRe: UNICODE Pin
toxcct7-Jul-05 20:21
toxcct7-Jul-05 20:21 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 7:09
John R. Shaw8-Jul-05 7:09 
GeneralRe: UNICODE Pin
Bob Stanneveld7-Jul-05 22:03
Bob Stanneveld7-Jul-05 22:03 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 8:39
John R. Shaw8-Jul-05 8:39 
Keep in mind that a requirement of this project (my own), is to use standard C++ only. That is it must be totally compiler independent, it needs to be usable in any C++ environment, be it Windows, Unix, etc... .

Bob Stanneveld wrote:
What feedback do you want?

The templates use various algorithms to process text and I want it to be able to to show the steps it takes in processing, as visual feedback to user (this feature can be turned on at compile time.

Bob Stanneveld wrote:
Why do you want this?

This feature is not just for testing, but also for teaching. It is not needed for the templates to do there job, but it is if you want to see how they do it (consider it a type of compiler feedback).

Bob Stanneveld wrote:
More important, what is it that you don't know at compile time that you need to know at runtime?

What the input is, and precisely how it processed that input.

Does a compiler know precisely what the input is going to be at runtime? If it did then it would not need to give any feedback (warning,errors,etc..).

Bob Stanneveld wrote:
You don't want to resolve this at runtime, but at compile time.

Which is what I am trying to do, in a compiler independent way. The feedback is in the form of text strings that must be formated based on the character type passed to the template.

Bob Stanneveld wrote:
If you use an wchar_t string when UNICODE is not defined, you get compiler errors, which is exactly what you want

That is only true if you're trying to pass those wchar_t strings to functions that require char strings. You can process wchar_t all you want in a non-UNICODE program, but you would need to convert them to a displayable form if you wish to display them. How they are converted for actual display is up to the user and is of no concern of the template, it assumes that the input character type is the type required for feedback. I would not (normally) mix char and wchar_t strings in this way, and do not expect users of this template to do so either, but if they did, a template does and should not care.

P.S. This reply would have been shorter, but CP went down for updating while I was writing it.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: UNICODE Pin
Bob Stanneveld9-Jul-05 5:48
Bob Stanneveld9-Jul-05 5:48 
Generalrget r, g or b value for opengl Pin
cell517-Jul-05 16:27
cell517-Jul-05 16:27 
GeneralRe: rget r, g or b value for opengl Pin
Jose Lamas Rios7-Jul-05 16:44
Jose Lamas Rios7-Jul-05 16:44 
Generalneed help on generate report to excel Pin
firebolt777-Jul-05 16:05
firebolt777-Jul-05 16:05 
GeneralRe: need help on generate report to excel Pin
Jose Lamas Rios7-Jul-05 17:09
Jose Lamas Rios7-Jul-05 17:09 
GeneralRe: need help on generate report to excel Pin
firebolt777-Jul-05 20:03
firebolt777-Jul-05 20:03 
GeneralRe: need help on generate report to excel Pin
Jose Lamas Rios7-Jul-05 20:12
Jose Lamas Rios7-Jul-05 20:12 
GeneralRe: need help on generate report to excel Pin
firebolt777-Jul-05 20:25
firebolt777-Jul-05 20:25 
GeneralRe: need help on generate report to excel Pin
firebolt778-Jul-05 3:36
firebolt778-Jul-05 3:36 
GeneralRe: need help on generate report to excel Pin
urxlnc0077-Jul-05 19:23
urxlnc0077-Jul-05 19:23 
GeneralRe: need help on generate report to excel Pin
firebolt777-Jul-05 21:36
firebolt777-Jul-05 21:36 
GeneralHelp finding wmstub.lib Pin
Lan_Zer07-Jul-05 13:20
Lan_Zer07-Jul-05 13:20 
GeneralRe: Help finding wmstub.lib Pin
Christian Graus7-Jul-05 16:45
protectorChristian Graus7-Jul-05 16:45 
Generalgetting a correct structure data Pin
Ista7-Jul-05 12:40
Ista7-Jul-05 12:40 
GeneralRe: getting a correct structure data Pin
ldaoust7-Jul-05 15:12
ldaoust7-Jul-05 15:12 
GeneralMemory for my application Pin
Ivan Cachicatari7-Jul-05 11:50
Ivan Cachicatari7-Jul-05 11:50 
GeneralRe: Memory for my application Pin
David Crow7-Jul-05 13:25
David Crow7-Jul-05 13:25 

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.