Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: What is the benefit using duplicate loop statement Pinmemberecony4-Jan-13 8:21 
GeneralRe: What is the benefit using duplicate loop statement PinmvpRichard MacCutchan4-Jan-13 7:59 
AnswerRe: What is the benefit using duplicate loop statement [solved] PinmvpCPallini7-Jan-13 0:09 
AnswerRe: What is the benefit using duplicate loop statement [solved] PinmemberJoe Woodbury7-Jan-13 11:19 
QuestionIt's too slow to use the DrawDibDraw to draw a frame. Pingroupyu-jian4-Jan-13 4:31 
Questionhow to create font by unicode value? PinmemberFalconapollo4-Jan-13 2:30 
AnswerRe: how to create font by unicode value? PinmvpRichard MacCutchan4-Jan-13 4:23 
Questionwhen writing file,dispaly a animation with avi Pinmembercherry7293-Jan-13 23:51 
dear all,I have a question,when I write files,like pdf,i want to popup a dialog with animation to show
that the writing operation is working.
I don't know how to do with that ,it may need a avi file ,use CAnimateCtrl,is it need multithread,please
help me.this is my code
 void CMainFrame::OnExportPdf()
{
    // TODO: Add your command handler code here
    CExportPro*  ExPro;
    ExPro = new CExportPro();
    CFileDialog  dlg(FALSE,TEXT("txt"),NULL,OFN_HIDEREADONLY|OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_OVERWRITEPROMPT,_T("TXT (*.txt) |*.txt|")); 
    CString   fileName;
    CString   filePath;
   if(dlg.DoModal()==IDOK )
   {
       ExPro->SetCaption(TEXT("pdf"));
       ExPro->Create();
       ExPro->ShowWindow(SW_SHOW);
       filePath = dlg.GetPathName();
       m_filepathname = dlg.GetPathName();
     //  AfxBeginThread(WriteFile,this);
       if ( !filePath.IsEmpty())
       {
           CFile file;
           CString str(TEXT("hello this is the test for write process"));
           file.Open(filePath.GetBuffer(),CFile::modeCreate|CFile::modeWrite);
           while (i<1000000)
           {
               file.Write(str,str.GetLength());
               i++;
           }
           file.Close();
       }
   }
}
BOOL CExportPro::OnInitDialog()
{
    CDialogEx::OnInitDialog();
    SetWindowText(m_StrCaption);
    m_avi.Open(IDR_AVI1);
    m_avi.Play(0,-1, -1);
    return TRUE;
}

I know It is not my means,but how can do ,when writing it display avi.
AnswerRe: when writing file,dispaly a animation with avi [modified] PinmemberRajesh R Subramanian4-Jan-13 1:04 
GeneralRe: when writing file,dispaly a animation with avi Pinmembercherry7294-Jan-13 15:34 
QuestionMS Visual Studio Express 2010, Cygwin, Eclipse together Pinmembertrinh.nguyen3-Jan-13 15:39 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together [modified] PinmemberApril Fans3-Jan-13 18:42 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together PinmvpRichard MacCutchan3-Jan-13 23:33 
Questiona "new" operator failed Pinmembera_matseevsky3-Jan-13 8:41 
AnswerRe: a "new" operator failed Pinmemberjschell3-Jan-13 9:06 
GeneralRe: a "new" operator failed Pinmembera_matseevsky3-Jan-13 9:50 
AnswerRe: a "new" operator failed PinmvpCPallini3-Jan-13 10:06 
GeneralRe: a "new" operator failed Pinmembera_matseevsky3-Jan-13 23:41 
QuestionActiveX Memory leaks PinmemberManish K. Agarwal2-Jan-13 20:40 
AnswerRe: ActiveX Memory leaks [modified] PinmemberApril Fans3-Jan-13 16:23 
GeneralRe: ActiveX Memory leaks PinmvpRichard MacCutchan3-Jan-13 23:29 
AnswerRe: ActiveX Memory leaks [modified] PinmemberApril Fans3-Jan-13 16:50 
QuestionRe: ActiveX Memory leaks PinmemberManish K. Agarwal7-Jan-13 1:28 
QuestionFileSystemWatcher Class in Visual C++ 6.0 PinmemberForNow2-Jan-13 16:23 
AnswerRe: FileSystemWatcher Class in Visual C++ 6.0 PinmemberStephen Hewitt2-Jan-13 18:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 19 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid