Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem about CSocket in multithread programing Pin
kcynic11-May-07 2:31
kcynic11-May-07 2:31 
GeneralRe: Problem about CSocket in multithread programing Pin
Roger Stoltz11-May-07 3:12
Roger Stoltz11-May-07 3:12 
GeneralRe: Problem about CSocket in multithread programing Pin
kcynic11-May-07 3:43
kcynic11-May-07 3:43 
GeneralRe: Problem about CSocket in multithread programing Pin
Roger Stoltz11-May-07 4:06
Roger Stoltz11-May-07 4:06 
Questionlock a directory or drive Pin
mahdiehIR10-May-07 21:44
mahdiehIR10-May-07 21:44 
QuestionRe: lock a directory or drive Pin
David Crow11-May-07 3:04
David Crow11-May-07 3:04 
Questionenum Pin
Try10-May-07 21:32
Try10-May-07 21:32 
AnswerRe: enum Pin
Roger Stoltz10-May-07 22:03
Roger Stoltz10-May-07 22:03 
In my opinion you should avoid this because it doesn't make sense.

Consider having an enum with days of the week and another with months
typedef enum
{
    Sunday = 1,
    Monday,
    Tuesday,
    Wednesday,
    Thursday,
    Friday,
    Saturday
} Weekdays_t;

typedef enum
{
    Januari = 1,
    Februari,
    March,
    April,
    May,
    June,
    Juli,
    August,
    September,
    October,
    November,
    December
} Months_t

It wouldn't make sense to assign Januari to a weekday in my book, even if the value (1) is the same. It would be confusing for anyone that reads the code later.

If you should have some kind of mapping between two enums, I suggest you at least map it in a switch-case statement.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

Questionlinking problems Pin
skatzteyp10-May-07 20:54
skatzteyp10-May-07 20:54 
QuestionRe: linking problems Pin
Mushtaque Nizamani11-May-07 2:03
Mushtaque Nizamani11-May-07 2:03 
Questionreg:displaying images of the devices or names of it Pin
grc41210-May-07 20:53
grc41210-May-07 20:53 
QuestionUnhandled Exception 0xC0000005 Pin
tom groezer10-May-07 20:44
tom groezer10-May-07 20:44 
AnswerRe: Unhandled Exception 0xC0000005 Pin
Stephen Hewitt10-May-07 20:56
Stephen Hewitt10-May-07 20:56 
GeneralRe: Unhandled Exception 0xC0000005 Pin
tom groezer10-May-07 21:13
tom groezer10-May-07 21:13 
GeneralRe: Unhandled Exception 0xC0000005 Pin
Stephen Hewitt10-May-07 21:16
Stephen Hewitt10-May-07 21:16 
GeneralRe: Unhandled Exception 0xC0000005 Pin
Mark Salsbery11-May-07 5:33
Mark Salsbery11-May-07 5:33 
GeneralRe: Unhandled Exception 0xC0000005 Pin
Stephen Hewitt11-May-07 16:16
Stephen Hewitt11-May-07 16:16 
GeneralRe: Unhandled Exception 0xC0000005 Pin
Mark Salsbery11-May-07 5:52
Mark Salsbery11-May-07 5:52 
AnswerRe: Unhandled Exception 0xC0000005 Pin
Cedric Moonen10-May-07 21:11
Cedric Moonen10-May-07 21:11 
GeneralRe: Unhandled Exception 0xC0000005 Pin
tom groezer10-May-07 21:29
tom groezer10-May-07 21:29 
GeneralRe: Unhandled Exception 0xC0000005 Pin
tom groezer10-May-07 21:43
tom groezer10-May-07 21:43 
AnswerRe: Unhandled Exception 0xC0000005 Pin
Stephen Hewitt11-May-07 16:20
Stephen Hewitt11-May-07 16:20 
QuestionAPI/SDK for Office Communicator 2007 Pin
Michael.Duan10-May-07 20:39
Michael.Duan10-May-07 20:39 
QuestionHow TO Create A Menu At The Bottom Pin
jannathali10-May-07 20:36
jannathali10-May-07 20:36 
AnswerRe: How TO Create A Menu At The Bottom Pin
Hamid_RT11-May-07 0:29
Hamid_RT11-May-07 0: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.