Click here to Skip to main content
15,880,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: array input using edit box Pin
David Crow21-Sep-06 6:59
David Crow21-Sep-06 6:59 
GeneralRe: array input using edit box Pin
Cyclone0221-Sep-06 7:15
Cyclone0221-Sep-06 7:15 
GeneralRe: array input using edit box Pin
David Crow21-Sep-06 7:28
David Crow21-Sep-06 7:28 
GeneralRe: array input using edit box Pin
Cyclone0222-Sep-06 5:59
Cyclone0222-Sep-06 5:59 
QuestionCall Windows Explorer after save files Pin
Max++21-Sep-06 5:19
Max++21-Sep-06 5:19 
AnswerRe: Call Windows Explorer after save files Pin
toxcct21-Sep-06 5:39
toxcct21-Sep-06 5:39 
QuestionDialog don't get focus back [modified] Pin
jsumm21-Sep-06 4:34
jsumm21-Sep-06 4:34 
QuestionComparing enum types Pin
Waldermort21-Sep-06 4:25
Waldermort21-Sep-06 4:25 
Just changed a few #defines into enum, and now getting compiler errors. How are enum types compared?
typedef enum tile_from_t 
{ 
NORTH=0,EAST,SOUTH,WEST
} TILEFROM, SEAT, *LPSEAT;

bool cTiles::VerifySeat( const LPSEAT sSeat )
{
    switch ( m_sNumPlayers )
    {
    case 2:
        if ( sSeat == NORTH || sSeat == SOUTH )
            return true;
    case 3:
        if ( sSeat >= EAST && sSeat <= WEST )
            return true;
    case 4:
        if ( sSeat >= NORTH && sSeat <= WEST )
            return true;
    default:
        return false;
    }
}

AnswerRe: Comparing enum types Pin
Zac Howland21-Sep-06 4:44
Zac Howland21-Sep-06 4:44 
GeneralRe: Comparing enum types Pin
Waldermort21-Sep-06 5:21
Waldermort21-Sep-06 5:21 
GeneralRe: Comparing enum types Pin
Zac Howland21-Sep-06 5:36
Zac Howland21-Sep-06 5:36 
GeneralRe: Comparing enum types Pin
Waldermort21-Sep-06 5:45
Waldermort21-Sep-06 5:45 
QuestionReceive broadcast UDP Pin
jeron121-Sep-06 4:14
jeron121-Sep-06 4:14 
QuestionRe: Receive broadcast UDP Pin
Eytukan21-Sep-06 6:17
Eytukan21-Sep-06 6:17 
AnswerRe: Receive broadcast UDP Pin
jeron121-Sep-06 7:17
jeron121-Sep-06 7:17 
QuestionTo reduce the duplication of exes Pin
johnalek21-Sep-06 3:44
johnalek21-Sep-06 3:44 
AnswerRe: To reduce the duplication of exes Pin
toxcct21-Sep-06 3:48
toxcct21-Sep-06 3:48 
QuestionRe: To reduce the duplication of exes Pin
Eytukan21-Sep-06 3:48
Eytukan21-Sep-06 3:48 
QuestionRe: To reduce the duplication of exes Pin
David Crow21-Sep-06 4:11
David Crow21-Sep-06 4:11 
QuestionLinking Error : can not select the ........... Pin
Y_Kaushik21-Sep-06 3:16
Y_Kaushik21-Sep-06 3:16 
AnswerRe: Linking Error : can not select the ........... Pin
David Crow21-Sep-06 3:18
David Crow21-Sep-06 3:18 
AnswerRe: Linking Error : can not select the ........... Pin
Eytukan21-Sep-06 3:59
Eytukan21-Sep-06 3:59 
QuestionVB application error Pin
irudayam21-Sep-06 2:40
irudayam21-Sep-06 2:40 
AnswerRe: VB application error Pin
toxcct21-Sep-06 2:47
toxcct21-Sep-06 2:47 
QuestionRe: VB application error Pin
David Crow21-Sep-06 3:04
David Crow21-Sep-06 3:04 

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.