Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalfixup error Pin
nainakhawaja22-Dec-04 8:37
nainakhawaja22-Dec-04 8:37 
GeneralRe: fixup error Pin
David Crow22-Dec-04 9:10
David Crow22-Dec-04 9:10 
GeneralDragging rectangle Pin
Anonymous22-Dec-04 8:19
Anonymous22-Dec-04 8:19 
GeneralRe: Dragging rectangle Pin
David Crow22-Dec-04 9:03
David Crow22-Dec-04 9:03 
GeneralRe: Dragging rectangle Pin
Anonymous22-Dec-04 11:45
Anonymous22-Dec-04 11:45 
GeneralRe: Dragging rectangle Pin
John R. Shaw22-Dec-04 16:05
John R. Shaw22-Dec-04 16:05 
GeneralVC6 function template problems Pin
peterchen22-Dec-04 7:47
peterchen22-Dec-04 7:47 
GeneralRe: VC6 function template problems Pin
Antti Keskinen22-Dec-04 13:04
Antti Keskinen22-Dec-04 13:04 
Are you sure that the problem is not caused by the fact that Windows headers define CHAR according if Unicode or MBCS is set ?

Try changing the typename in the template to something that is not so "reserved" as CHAR is. Like 'TYPE_CHAR' and 'TYPE_STRLEN', for example. If the compiler still produces wchar_t overloads, then it might be a bug.

As for the questions.
- Like stated, overloading the CHAR typedef can be a bad mistake. Most compilers have in-built definitions for CHAR. Many of them resolve to 8-bit integer values, but some specific compilers (such as mobile device/mobile platform ones) might produce a different result. In eyes of the C++ standard, the code is correct, though, as 'CHAR' is not a base type, but 'char' is.
- Unknown. You could try posting this as a bug suggestion to Microsoft and see what they reply. Most possibly the reply is a suggestion to move into a newer programming environment.
- Unknown. Visual Studio compilers are aimed at producing Windows and Windows Embedded code. Because ANSI/ISO Standard doesn't support stuff like multithreading, many of these compilers are not entirely standard compliant. Make no mistake, this is due to the lacking standard, not due to Microsoft's ineptness in following the standard.

-Antti Keskinen

----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"

-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
GeneralRe: VC6 function template problems Pin
peterchen22-Dec-04 19:53
peterchen22-Dec-04 19:53 
GeneralSetWindowText gives me headache Pin
toxcct22-Dec-04 7:02
toxcct22-Dec-04 7:02 
GeneralRe: SetWindowText gives me headache Pin
David Crow22-Dec-04 8:18
David Crow22-Dec-04 8:18 
GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 8:31
toxcct22-Dec-04 8:31 
GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 8:45
toxcct22-Dec-04 8:45 
GeneralRe: SetWindowText gives me headache Pin
David Crow22-Dec-04 9:00
David Crow22-Dec-04 9:00 
GeneralRe: SetWindowText gives me headache Pin
Rick York22-Dec-04 13:05
mveRick York22-Dec-04 13:05 
GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 18:43
toxcct22-Dec-04 18:43 
GeneralRe: SetWindowText gives me headache Pin
David Crow23-Dec-04 2:11
David Crow23-Dec-04 2:11 
GeneralPhone Number Format Pin
Anonymous22-Dec-04 6:31
Anonymous22-Dec-04 6:31 
GeneralRe: Phone Number Format Pin
David Crow22-Dec-04 8:13
David Crow22-Dec-04 8:13 
GeneralRe: Phone Number Format Pin
Anonymous22-Dec-04 9:36
Anonymous22-Dec-04 9:36 
GeneralScrollbar doesn't scroll all the way Pin
Budric B.22-Dec-04 4:49
Budric B.22-Dec-04 4:49 
GeneralChanging screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 4:41
Mohammad A Gdeisat22-Dec-04 4:41 
GeneralRe: Changing screen resolution in windows xp Pin
David Crow22-Dec-04 5:07
David Crow22-Dec-04 5:07 
GeneralRe: Changing screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 7:38
Mohammad A Gdeisat22-Dec-04 7:38 
GeneralStrange CTypedPtrArray error Pin
Polly Parrot22-Dec-04 3:31
Polly Parrot22-Dec-04 3:31 

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.