Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Notification for a file creation Pin
Naveen27-May-08 20:29
Naveen27-May-08 20:29 
GeneralRe: Notification for a file creation Pin
Jijo.Raj27-May-08 20:49
Jijo.Raj27-May-08 20:49 
AnswerRe: Notification for a file creation Pin
Hamid_RT28-May-08 2:48
Hamid_RT28-May-08 2:48 
QuestionUninitialise memory read Pin
deepesh kumar27-May-08 19:39
deepesh kumar27-May-08 19:39 
Questionhow to selective loading BHO in Chtmlview environment [modified] Pin
ftbk27-May-08 16:28
ftbk27-May-08 16:28 
AnswerRe: how to selective loading BHO in Chtmlview environment Pin
Rajkumar R27-May-08 20:32
Rajkumar R27-May-08 20:32 
GeneralRe: how to selective loading BHO in Chtmlview environment Pin
ftbk27-May-08 21:49
ftbk27-May-08 21:49 
Questionsave dialog Pin
lahom27-May-08 15:54
lahom27-May-08 15:54 
hi
i have an MFC dialog based application .
when the user enter his information and click save ...save dialog appears and the process goes as normal .
my question is ..when the user modifies his info and click the save button again ..i dont want the save dialog to appear just save the modified info.
how can i do that while iam using the following function to save:
void CmyDlg::Onsave() 
{
   // TODO: Add your control notification handler code here
   this->UpdateData();
   CFile f;
   char strFilter[] = { "CCC Files (*.ccc)|*.ccc|All Files (*.*)|*.*||" };
   CFileDialog FileDlg(FALSE, ".ccc", NULL, 0, strFilter);
   
      if( FileDlg.DoModal() == IDOK )
      {
         f.Open(FileDlg.GetFileName(), CFile::modeCreate | CFile::modeWrite);
         CArchive ar(&f, CArchive::store);
         ar << m_EDIT1<<m_EDIT2;
         ar.Close();
      }
      else
         return;
   }
   f.Close();
}

pleease..i need help in this
i tried different things but nothing works
AnswerRe: save dialog Pin
David Crow27-May-08 16:00
David Crow27-May-08 16:00 
GeneralRe: save dialog Pin
lahom27-May-08 16:14
lahom27-May-08 16:14 
GeneralRe: save dialog Pin
David Crow27-May-08 16:25
David Crow27-May-08 16:25 
GeneralRe: save dialog Pin
lahom27-May-08 16:39
lahom27-May-08 16:39 
GeneralRe: save dialog Pin
SandipG 27-May-08 18:30
SandipG 27-May-08 18:30 
GeneralRe: save dialog Pin
lahom28-May-08 21:27
lahom28-May-08 21:27 
QuestionWaitForSingleobject vs SetTimer Pin
rp_suman27-May-08 15:40
rp_suman27-May-08 15:40 
AnswerRe: WaitForSingleobject vs SetTimer Pin
David Crow27-May-08 16:01
David Crow27-May-08 16:01 
QuestionRe: WaitForSingleobject vs SetTimer Pin
rp_suman27-May-08 17:12
rp_suman27-May-08 17:12 
AnswerRe: WaitForSingleobject vs SetTimer Pin
SandipG 27-May-08 18:35
SandipG 27-May-08 18:35 
GeneralRe: WaitForSingleobject vs SetTimer Pin
rp_suman27-May-08 20:55
rp_suman27-May-08 20:55 
AnswerRe: WaitForSingleobject vs SetTimer Pin
Nelek27-May-08 22:02
protectorNelek27-May-08 22:02 
GeneralRe: WaitForSingleobject vs SetTimer Pin
rp_suman28-May-08 4:05
rp_suman28-May-08 4:05 
Questionemployee pay calculator Pin
Pathetic27-May-08 15:28
Pathetic27-May-08 15:28 
AnswerRe: employee pay calculator Pin
David Crow27-May-08 16:04
David Crow27-May-08 16:04 
GeneralRe: employee pay calculator Pin
Pathetic28-May-08 12:19
Pathetic28-May-08 12:19 
AnswerRe: employee pay calculator Pin
ShilpiP27-May-08 19:56
ShilpiP27-May-08 19:56 

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.