Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAfxMessageBox stop working after split the frame Pin
gurucplusplus24-May-07 11:11
gurucplusplus24-May-07 11:11 
AnswerRe: AfxMessageBox stop working after split the frame Pin
Nelek24-May-07 21:33
protectorNelek24-May-07 21:33 
GeneralRe: AfxMessageBox stop working after split the frame Pin
gurucplusplus25-May-07 7:07
gurucplusplus25-May-07 7:07 
GeneralRe: AfxMessageBox stop working after split the frame Pin
Nelek31-May-07 6:11
protectorNelek31-May-07 6:11 
Questionisletter' : not all control paths return a value Pin
Immunity1824-May-07 10:59
Immunity1824-May-07 10:59 
AnswerRe: isletter' : not all control paths return a value Pin
Mark Salsbery24-May-07 11:13
Mark Salsbery24-May-07 11:13 
GeneralRe: isletter' : not all control paths return a value Pin
Immunity1824-May-07 11:17
Immunity1824-May-07 11:17 
GeneralRe: isletter' : not all control paths return a value Pin
Mark Salsbery24-May-07 11:26
Mark Salsbery24-May-07 11:26 
Immunity18 wrote:
want to know when a GetAt(i) is not letter (a-z A-Z) so it would be 1234567890!@$#^%^ etc

if (0 == _istalpha(str.GetAt(...)))
{
   // not a letter
}

I don't know what the problem with isalpha/iswalpha was...

Regardless, look at your for loop - no matter what the condition, the function returns.

To the compiler there's no return after the for loop. If the for loop condition fails before the
first iteration, then no value is returned. We know the for loop will always execute (because
for (int i = 0 ; i <26 ...) but the compiler doesn't.

Mark




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: isletter' : not all control paths return a value Pin
Immunity1824-May-07 11:28
Immunity1824-May-07 11:28 
GeneralRe: isletter' : not all control paths return a value Pin
Mark Salsbery24-May-07 11:32
Mark Salsbery24-May-07 11:32 
GeneralRe: isletter' : not all control paths return a value Pin
Immunity1824-May-07 11:33
Immunity1824-May-07 11:33 
GeneralRe: isletter' : not all control paths return a value Pin
Immunity1824-May-07 12:11
Immunity1824-May-07 12:11 
GeneralRe: isletter' : not all control paths return a value Pin
Mark Salsbery24-May-07 12:24
Mark Salsbery24-May-07 12:24 
GeneralRe: isletter' : not all control paths return a value Pin
Immunity1824-May-07 12:29
Immunity1824-May-07 12:29 
AnswerRe: isletter' : not all control paths return a value Pin
Mark Salsbery24-May-07 11:17
Mark Salsbery24-May-07 11:17 
GeneralRe: isletter' : not all control paths return a value Pin
Immunity1824-May-07 11:18
Immunity1824-May-07 11:18 
AnswerRe: isletter' : not all control paths return a value Pin
GameProfessor24-May-07 22:53
GameProfessor24-May-07 22:53 
GeneralRe: isletter' : not all control paths return a value Pin
Mark Salsbery25-May-07 6:09
Mark Salsbery25-May-07 6:09 
QuestionHide a window from Taskbar Pin
Perspx24-May-07 9:38
Perspx24-May-07 9:38 
AnswerRe: Hide a window from Taskbar Pin
Hamid_RT24-May-07 11:09
Hamid_RT24-May-07 11:09 
AnswerRe: Hide a window from Taskbar Pin
Naveen24-May-07 15:00
Naveen24-May-07 15:00 
GeneralRe: Hide a window from Taskbar Pin
romeshj24-Feb-09 22:22
romeshj24-Feb-09 22:22 
AnswerRe: Hide a window from Taskbar Pin
Nibu babu thomas24-May-07 18:44
Nibu babu thomas24-May-07 18:44 
AnswerRe: Hide a window from Taskbar Pin
swarup24-May-07 22:34
swarup24-May-07 22:34 
GeneralRe: Hide a window from Taskbar Pin
Perspx25-May-07 5:29
Perspx25-May-07 5:29 

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.