Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the difference between two variables of type DATE !! Pin
bahruddina19-Nov-02 5:56
bahruddina19-Nov-02 5:56 
AnswerRe: How to get the difference between two variables of type DATE !! Pin
Chris Losinger19-Nov-02 6:02
professionalChris Losinger19-Nov-02 6:02 
AnswerRe: How to get the difference between two variables of type DATE !! Pin
Alvaro Mendez19-Nov-02 6:10
Alvaro Mendez19-Nov-02 6:10 
GeneralDrag And Droppings ... Pin
Maximilien19-Nov-02 5:34
Maximilien19-Nov-02 5:34 
GeneralRe: Drag And Droppings ... Pin
Paul M Watt19-Nov-02 9:59
mentorPaul M Watt19-Nov-02 9:59 
GeneralDumb question.. Pin
RobJones19-Nov-02 5:28
RobJones19-Nov-02 5:28 
GeneralRe: Dumb question.. Pin
Chris Losinger19-Nov-02 6:00
professionalChris Losinger19-Nov-02 6:00 
GeneralRe: Dumb question.. Pin
Alvaro Mendez19-Nov-02 6:02
Alvaro Mendez19-Nov-02 6:02 
The problem has to do with the modified flag inside your document being set somehow. Read up on SetModifiedFlag, IsModified, and SaveModified.

It seems to me like the quickest solution is just to override SaveModified in your CDocument-derived class and make it return TRUE:

BOOL CYourDocument::SaveModified()
{
  return TRUE;
}


Regards,
Alvaro


Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
GeneralRe: Dumb question.. Pin
RobJones19-Nov-02 6:09
RobJones19-Nov-02 6:09 
Generalstatic_cast Pin
Jon Hulatt19-Nov-02 5:14
Jon Hulatt19-Nov-02 5:14 
GeneralRe: static_cast Pin
Joaquín M López Muñoz19-Nov-02 5:33
Joaquín M López Muñoz19-Nov-02 5:33 
GeneralRe: static_cast Pin
Jon Hulatt19-Nov-02 5:52
Jon Hulatt19-Nov-02 5:52 
GeneralRe: static_cast Pin
Tim Smith19-Nov-02 6:04
Tim Smith19-Nov-02 6:04 
GeneralRe: static_cast Pin
Paul M Watt19-Nov-02 10:05
mentorPaul M Watt19-Nov-02 10:05 
GeneralRe: static_cast Pin
Patje19-Nov-02 21:17
Patje19-Nov-02 21:17 
GeneralCrash in CReBar::AddBar() under .Net Pin
pvlasie19-Nov-02 4:39
pvlasie19-Nov-02 4:39 
QuestionWhere custom ie toolbar is located? Pin
Weiye Chen19-Nov-02 4:17
Weiye Chen19-Nov-02 4:17 
AnswerRe: Where custom ie toolbar is located? Pin
Chris Hambleton19-Nov-02 11:54
Chris Hambleton19-Nov-02 11:54 
GeneralDigital timer MFC/C++ Pin
Justina0119-Nov-02 3:39
Justina0119-Nov-02 3:39 
GeneralRe: Digital timer MFC/C++ Pin
RobJones19-Nov-02 5:31
RobJones19-Nov-02 5:31 
GeneralRe: Digital timer MFC/C++ Pin
valikac19-Nov-02 7:26
valikac19-Nov-02 7:26 
Generaldouble channels in ISDN Pin
Tili19-Nov-02 3:37
Tili19-Nov-02 3:37 
GeneralKeyboard input trouble Pin
s o v a n n19-Nov-02 3:05
s o v a n n19-Nov-02 3:05 
GeneralRe: Keyboard input trouble Pin
benjymous19-Nov-02 3:44
benjymous19-Nov-02 3:44 
GeneralRe: Keyboard input trouble Pin
Jason Henderson19-Nov-02 3:48
Jason Henderson19-Nov-02 3:48 

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.