Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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. PinPopular
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 
Hi!
I've to convert a wide char string to tolower. This the code I used.

s32 id = profileList->getSelected();
stringw strtoDelete = profileList->getListItem(profileList->getSelected());
if(!strcmp(reinterpret_cast<const char*>(tolower(strtoDelete.c_str())),reinterpret_cast<const char*>("default")))
{
 profileList->removeItem(id);
}


But I got the following errors:

Error 5 error C2143: syntax error : missing ')' before '{' d:\goldminer\source\game\gamemenuprofilestate.cpp 237
Error 4 error C2661: 'strcmp' : no overloaded function takes 1 arguments d:\goldminer\source\game\gamemenuprofilestate.cpp 236
Error 3 error C2664: 'tolower' : cannot convert parameter 1 from 'const wchar_t *' to 'int' d:\goldminer\source\game\gamemenuprofilestate.cpp 236
7 IntelliSense: argument of type "const wchar_t *" is incompatible with parameter of type "int" d:\goldminer\source\game\gamemenuprofilestate.cpp 236

How to convert a wide char string to tolower?
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 
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 
QuestionCreateWindow / CreateWindowEx Pin
Fareed Rizkalla30-Sep-10 10:20
Fareed Rizkalla30-Sep-10 10:20 
AnswerRe: CreateWindow / CreateWindowEx Pin
«_Superman_»30-Sep-10 19:10
professional«_Superman_»30-Sep-10 19:10 
AnswerRe: CreateWindow / CreateWindowEx Pin
prasad_som1-Oct-10 0:23
prasad_som1-Oct-10 0:23 
Questionmaking a win32 dll project (visual studio) on a 64 bit machine Pin
ns30-Sep-10 10:05
ns30-Sep-10 10:05 
AnswerRe: making a win32 dll project (visual studio) on a 64 bit machine Pin
Fareed Rizkalla30-Sep-10 10:16
Fareed Rizkalla30-Sep-10 10:16 
GeneralRe: making a win32 dll project (visual studio) on a 64 bit machine Pin
ns30-Sep-10 10:21
ns30-Sep-10 10:21 
GeneralRe: making a win32 dll project (visual studio) on a 64 bit machine Pin
Maximilien30-Sep-10 10:44
Maximilien30-Sep-10 10:44 
GeneralRe: making a win32 dll project (visual studio) on a 64 bit machine Pin
ns30-Sep-10 10:57
ns30-Sep-10 10:57 

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.