Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: add code to standard Save Pin
doctorpi19-Sep-03 5:32
doctorpi19-Sep-03 5:32 
GeneralRe: add code to standard Save Pin
doctorpi19-Sep-03 5:42
doctorpi19-Sep-03 5:42 
GeneralDisabling/Enabling a serial port Pin
neffc19-Sep-03 3:41
neffc19-Sep-03 3:41 
GeneralRe: Disabling/Enabling a serial port Pin
valikac19-Sep-03 4:50
valikac19-Sep-03 4:50 
GeneralCompareNoCase fails Pin
r i s h a b h s19-Sep-03 3:36
r i s h a b h s19-Sep-03 3:36 
GeneralRe: CompareNoCase fails Pin
RobJones19-Sep-03 3:40
RobJones19-Sep-03 3:40 
GeneralRe: CompareNoCase fails Pin
David Crow19-Sep-03 4:04
David Crow19-Sep-03 4:04 
GeneralRe: CompareNoCase fails Pin
Mike Dimmick19-Sep-03 4:19
Mike Dimmick19-Sep-03 4:19 
I assume sDir is a CString, you're not compiling for Unicode, and you're trying to test for sDir NOT being M (i.e. the if block should be executed if sDir is not M).

I can't see why this would fail on Windows 2000. CompareNoCase uses _tcsicmp, which translates to _stricmp for a non-MBCS, non-Unicode build. For an MBCS build, it translates to _mbsicmp. Check which of MBCS and/or UNICODE you're defining.

Apparently these functions are affected by the LC_CTYPE but not the LC_COLLATE locale parameter. I believe that the locale defaults to the C locale - see the documentation for setlocale.

See also the CodeProject BugList article[^].
GeneralRe: CompareNoCase fails Pin
Gary R. Wheeler20-Sep-03 4:03
Gary R. Wheeler20-Sep-03 4:03 
Generalnumerical values help! Pin
coda_x19-Sep-03 2:27
coda_x19-Sep-03 2:27 
GeneralRe: numerical values help! Pin
User 665819-Sep-03 3:21
User 665819-Sep-03 3:21 
GeneralRe: numerical values help! Pin
Dangleberry19-Sep-03 5:34
sussDangleberry19-Sep-03 5:34 
GeneralRe: numerical values help! Pin
User 665819-Sep-03 6:19
User 665819-Sep-03 6:19 
GeneralRe: numerical values help! Pin
Dangleberry21-Sep-03 23:53
sussDangleberry21-Sep-03 23:53 
GeneralRe: numerical values help! Pin
David Crow19-Sep-03 4:01
David Crow19-Sep-03 4:01 
GeneralRe: numerical values help! Pin
antlers19-Sep-03 7:59
antlers19-Sep-03 7:59 
GeneralRe: numerical values help! Pin
coda_x19-Sep-03 17:46
coda_x19-Sep-03 17:46 
GeneralApplication error! Pin
coda_x19-Sep-03 2:17
coda_x19-Sep-03 2:17 
GeneralRe: Application error! Pin
Rickard Andersson2019-Sep-03 2:23
Rickard Andersson2019-Sep-03 2:23 
GeneralRe: Application error! Pin
coda_x19-Sep-03 2:30
coda_x19-Sep-03 2:30 
GeneralRe: Application error! Pin
Alexander M.,19-Sep-03 2:48
Alexander M.,19-Sep-03 2:48 
GeneralRe: Application error! Pin
David Crow19-Sep-03 4:02
David Crow19-Sep-03 4:02 
GeneralResize Edit Control in MFC Pin
cberam19-Sep-03 1:07
cberam19-Sep-03 1:07 
GeneralRe: Resize Edit Control in MFC Pin
David Crow19-Sep-03 2:07
David Crow19-Sep-03 2:07 
GeneralDrawing an icon with an overlay icon on a dialog Pin
Salvador Dali19-Sep-03 0:46
Salvador Dali19-Sep-03 0:46 

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.