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

C / C++ / MFC

 
GeneralRe: Shaded Colors to GUI [modified] Pin
kiranin27-Nov-06 23:57
kiranin27-Nov-06 23:57 
GeneralRe: Shaded Colors to GUI Pin
toxcct28-Nov-06 0:07
toxcct28-Nov-06 0:07 
QuestionChange the default layout of child windows Pin
fahmoun27-Nov-06 22:13
fahmoun27-Nov-06 22:13 
QuestionHow to invert bitmap in .bmp file thro 180 degree Pin
Neo Andreson27-Nov-06 22:04
Neo Andreson27-Nov-06 22:04 
AnswerRe: How to invert bitmap in .bmp file thro 180 degree Pin
Rajesh R Subramanian27-Nov-06 23:05
professionalRajesh R Subramanian27-Nov-06 23:05 
GeneralRe: How to invert bitmap in .bmp file thro 180 degree Pin
Neo Andreson28-Nov-06 1:44
Neo Andreson28-Nov-06 1:44 
QuestionCan this code be better? Peer code review. Pin
Stick^27-Nov-06 22:02
Stick^27-Nov-06 22:02 
AnswerRe: Can this code be better? Peer code review. [modified] Pin
Viorel.27-Nov-06 23:10
Viorel.27-Nov-06 23:10 
I think a possible alternative solution is:
//static
bool Xpdr::IsValidCode(const wchar_t * code) const
{
    for( int i = 0; i < 4; ++i, ++code)
    {
        if( *code < '0' || *code > '7')
        {
            return false;
        }
    }
    return *code == 0;
}

I hope this works. In addition you can "unroll" this short loop and replace it with a series of "if"-s and autoincremented code pointer.


-- modified at 5:47 Tuesday 28th November, 2006
GeneralRe: Can this code be better? Peer code review. Pin
Stick^28-Nov-06 2:19
Stick^28-Nov-06 2:19 
GeneralRe: Can this code be better? Peer code review. Pin
Viorel.28-Nov-06 3:53
Viorel.28-Nov-06 3:53 
QuestionRe: Can this code be better? Peer code review. Pin
David Crow28-Nov-06 2:50
David Crow28-Nov-06 2:50 
AnswerRe: Can this code be better? Peer code review. Pin
Stick^28-Nov-06 3:47
Stick^28-Nov-06 3:47 
GeneralRe: Can this code be better? Peer code review. Pin
David Crow28-Nov-06 4:26
David Crow28-Nov-06 4:26 
QuestionHow to use UpdateResource() with RT_ICON Pin
Atom27-Nov-06 22:02
Atom27-Nov-06 22:02 
AnswerRe: How to use UpdateResource() with RT_ICON Pin
Nibu babu thomas27-Nov-06 22:35
Nibu babu thomas27-Nov-06 22:35 
QuestionAny method to detect the PC wake up from "stand-by" situation? Pin
StarMeteor27-Nov-06 21:42
StarMeteor27-Nov-06 21:42 
AnswerRe: Any method to detect the PC wake up from "stand-by" situation? Pin
Nibu babu thomas27-Nov-06 21:54
Nibu babu thomas27-Nov-06 21:54 
QuestionIs it possible to set hook for Joystick? Pin
LaHaHa27-Nov-06 21:15
LaHaHa27-Nov-06 21:15 
QuestionError when using CSocket with Threading Pin
Girish60127-Nov-06 21:00
Girish60127-Nov-06 21:00 
GeneralRe: Error when using CSocket with Threading Pin
Mila02527-Nov-06 21:09
Mila02527-Nov-06 21:09 
GeneralRe: Error when using CSocket with Threading Pin
spielehelfer27-Nov-06 21:28
spielehelfer27-Nov-06 21:28 
GeneralRe: Error when using CSocket with Threading Pin
Mark Salsbery28-Nov-06 6:16
Mark Salsbery28-Nov-06 6:16 
AnswerRe: Error when using CSocket with Threading Pin
Mark Salsbery28-Nov-06 6:17
Mark Salsbery28-Nov-06 6:17 
Questioncircuit solving Pin
echeshari27-Nov-06 20:38
echeshari27-Nov-06 20:38 
AnswerRe: circuit solving Pin
Rajesh R Subramanian27-Nov-06 21:21
professionalRajesh R Subramanian27-Nov-06 21:21 

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.