Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C2061 Compiler Error syntax error : identifier 'BOOL' Pin
CPallini1-Oct-10 2:23
mveCPallini1-Oct-10 2:23 
JokeRe: C2061 Compiler Error syntax error : identifier 'BOOL' Pin
bleedingfingers1-Oct-10 2:26
bleedingfingers1-Oct-10 2:26 
GeneralRe: C2061 Compiler Error syntax error : identifier 'BOOL' Pin
CPallini1-Oct-10 2:33
mveCPallini1-Oct-10 2:33 
JokeRe: C2061 Compiler Error syntax error : identifier 'BOOL' Pin
Sauro Viti1-Oct-10 3:39
professionalSauro Viti1-Oct-10 3:39 
QuestionC++ Rookie. Pin
forexsurfr30-Sep-10 20:27
forexsurfr30-Sep-10 20:27 
AnswerRe: C++ Rookie. Pin
Cedric Moonen30-Sep-10 20:37
Cedric Moonen30-Sep-10 20:37 
AnswerRe: C++ Rookie. Pin
Aescleal30-Sep-10 21:38
Aescleal30-Sep-10 21:38 
AnswerRe: C++ Rookie. Pin
Moak30-Sep-10 22:34
Moak30-Sep-10 22:34 
AnswerRe: C++ Rookie. Pin
David Crow1-Oct-10 3:26
David Crow1-Oct-10 3:26 
AnswerRe: C++ Rookie. Pin
forexsurfr1-Oct-10 6:17
forexsurfr1-Oct-10 6:17 
AnswerRe: C++ Rookie. Pin
bob169721-Oct-10 6:42
bob169721-Oct-10 6:42 
AnswerRe: C++ Rookie. Pin
vbmike1-Oct-10 8:24
vbmike1-Oct-10 8:24 
AnswerRe: C++ Rookie. Pin
Tim Craig1-Oct-10 18:40
Tim Craig1-Oct-10 18:40 
GeneralRe: C++ Rookie. Pin
Stefan_Lang3-Oct-10 23:14
Stefan_Lang3-Oct-10 23:14 
GeneralRe: C++ Rookie. Pin
Tim Craig4-Oct-10 14:41
Tim Craig4-Oct-10 14:41 
QuestionWide char string to tolower Pin
T.RATHA KRISHNAN30-Sep-10 18:43
T.RATHA KRISHNAN30-Sep-10 18:43 
AnswerRe: Wide char string to tolower Pin
«_Superman_»30-Sep-10 19:15
professional«_Superman_»30-Sep-10 19:15 
GeneralRe: Wide char string to tolower Pin
T.RATHA KRISHNAN30-Sep-10 19:20
T.RATHA KRISHNAN30-Sep-10 19:20 
AnswerRe: Wide char string to tolower Pin
Aescleal30-Sep-10 21:30
Aescleal30-Sep-10 21:30 
C99 defines a towlower which converts a single character. There's an implementation in VC++ from at 2003 onwards. You can use that with std::transform to convert a wide string to lowercase.

Cheers,

Ash

PS: Most of the time when you're having to use reinterpret_cast to shut the compiler up there's something a bit wrong with your code. Using strcmp is usually an additional signal, especially when you're using it with C++ style strings.

PPS: Just out of interest why are you trying to compare a C++ wide string to a narrow C string? Wouldn't it be far easier to just say:

if( strToDelete == L"default" )
{
    // ....
}


or am I missing something fundamental here?
GeneralRe: Wide char string to tolower Pin
Sauro Viti1-Oct-10 3:05
professionalSauro Viti1-Oct-10 3:05 
AnswerRe: Wide char string to tolower Pin
Richard MacCutchan30-Sep-10 22:26
mveRichard MacCutchan30-Sep-10 22:26 
AnswerRe: Wide char string to tolower Pin
Sameerkumar Namdeo3-Oct-10 18:06
Sameerkumar Namdeo3-Oct-10 18:06 
QuestionSoftware crashs under Windows 7, new UI Pin
Moak30-Sep-10 11:27
Moak30-Sep-10 11:27 
AnswerRe: Software crashs under Windows 7, new UI Pin
CPallini30-Sep-10 22:06
mveCPallini30-Sep-10 22:06 
GeneralRe: Software crashs under Windows 7, new UI Pin
Moak30-Sep-10 22:44
Moak30-Sep-10 22:44 

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.