Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MessageBox variation Pin
Brian Shifrin13-Apr-03 0:29
Brian Shifrin13-Apr-03 0:29 
GeneralRe: MessageBox variation Pin
Neville Franks13-Apr-03 0:46
Neville Franks13-Apr-03 0:46 
GeneralRe: MessageBox variation Pin
Jean-Marc Molina13-Apr-03 1:49
Jean-Marc Molina13-Apr-03 1:49 
GeneralRe: MessageBox variation Pin
J. Dunlap13-Apr-03 7:36
J. Dunlap13-Apr-03 7:36 
GeneralQuestion about overloading operator time_t. Pin
George212-Apr-03 20:34
George212-Apr-03 20:34 
GeneralRe: Question about overloading operator time_t. Pin
markkuk13-Apr-03 0:15
markkuk13-Apr-03 0:15 
GeneralRe: Question about overloading operator time_t. Pin
George213-Apr-03 1:28
George213-Apr-03 1:28 
GeneralRe: Question about overloading operator time_t. Pin
markkuk13-Apr-03 9:57
markkuk13-Apr-03 9:57 
You can simply return mktime(&wn); without assigning the value in a temporary variable. The code would be:
class MyTime {
private:
    int year;
    int month;
    int day;
public:
    operator time_t() const
    {
        struct tm wn = {0};
        wn.tm_mday = day;
        wn.tm_mon = month;
        wn.tm_year = year;
        return mktime(&wn);
    }
};

GeneralRe: Question about overloading operator time_t. Pin
George213-Apr-03 17:39
George213-Apr-03 17:39 
GeneralRe: Question about overloading operator time_t. Pin
Michael Dunn13-Apr-03 6:11
sitebuilderMichael Dunn13-Apr-03 6:11 
GeneralRe: Question about overloading operator time_t. Pin
George213-Apr-03 17:38
George213-Apr-03 17:38 
QuestionMSHTML get empty document? Pin
Kevein12-Apr-03 17:00
Kevein12-Apr-03 17:00 
AnswerRe: MSHTML get empty document? Pin
nde_plume13-Apr-03 12:06
nde_plume13-Apr-03 12:06 
QuestionAdd Member Function-VC ++ 6.0 bug? Pin
7stud12-Apr-03 16:46
7stud12-Apr-03 16:46 
Generalnot getting messages Pin
cgreathouse12-Apr-03 14:50
cgreathouse12-Apr-03 14:50 
GeneralRe: not getting messages Pin
Miszou14-Apr-03 6:48
Miszou14-Apr-03 6:48 
QuestionSending a CString to an edit control? Pin
stf12-Apr-03 13:43
stf12-Apr-03 13:43 
AnswerRe: Sending a CString to an edit control? Pin
Ravi Bhavnani12-Apr-03 14:03
professionalRavi Bhavnani12-Apr-03 14:03 
GeneralRe: Sending a CString to an edit control? Pin
stf12-Apr-03 16:10
stf12-Apr-03 16:10 
Generaldynamic memory allocation Pin
SHaroz12-Apr-03 12:57
SHaroz12-Apr-03 12:57 
GeneralRe: dynamic memory allocation Pin
Dominik Reichl13-Apr-03 1:12
Dominik Reichl13-Apr-03 1:12 
GeneralRe: dynamic memory allocation Pin
SHaroz13-Apr-03 7:56
SHaroz13-Apr-03 7:56 
GeneralLoading partial bitmap Pin
georgiek5012-Apr-03 11:02
georgiek5012-Apr-03 11:02 
GeneralUNICODE build - but something's linking incorrectly Pin
Mark Otway12-Apr-03 10:52
Mark Otway12-Apr-03 10:52 
Questionhow to return HRESULT function in MFC ActiveX Pin
Obi-Wan-Kenobi12-Apr-03 10:06
Obi-Wan-Kenobi12-Apr-03 10:06 

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.