Click here to Skip to main content
15,860,972 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 7:21
econy4-Jan-13 7:21 
GeneralRe: What is the benefit using duplicate loop statement Pin
Richard MacCutchan4-Jan-13 6:59
mveRichard MacCutchan4-Jan-13 6:59 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
CPallini6-Jan-13 23:09
mveCPallini6-Jan-13 23:09 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
Joe Woodbury7-Jan-13 10:19
professionalJoe Woodbury7-Jan-13 10:19 
QuestionIt's too slow to use the DrawDibDraw to draw a frame. Pin
yu-jian4-Jan-13 3:31
yu-jian4-Jan-13 3:31 
Questionhow to create font by unicode value? Pin
Falconapollo4-Jan-13 1:30
Falconapollo4-Jan-13 1:30 
AnswerRe: how to create font by unicode value? Pin
Richard MacCutchan4-Jan-13 3:23
mveRichard MacCutchan4-Jan-13 3:23 
Questionwhen writing file,dispaly a animation with avi Pin
haha_c3-Jan-13 22:51
haha_c3-Jan-13 22: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
C#
 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();
       }
   }
}

C#
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 Pin
Rajesh R Subramanian4-Jan-13 0:04
professionalRajesh R Subramanian4-Jan-13 0:04 
GeneralRe: when writing file,dispaly a animation with avi Pin
haha_c4-Jan-13 14:34
haha_c4-Jan-13 14:34 
QuestionMS Visual Studio Express 2010, Cygwin, Eclipse together Pin
trinh.nguyen3-Jan-13 14:39
trinh.nguyen3-Jan-13 14:39 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
April Fans3-Jan-13 17:42
April Fans3-Jan-13 17:42 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
Richard MacCutchan3-Jan-13 22:33
mveRichard MacCutchan3-Jan-13 22:33 
Questiona "new" operator failed Pin
a_matseevsky3-Jan-13 7:41
a_matseevsky3-Jan-13 7:41 
AnswerRe: a "new" operator failed Pin
jschell3-Jan-13 8:06
jschell3-Jan-13 8:06 
GeneralRe: a "new" operator failed Pin
a_matseevsky3-Jan-13 8:50
a_matseevsky3-Jan-13 8:50 
AnswerRe: a "new" operator failed Pin
CPallini3-Jan-13 9:06
mveCPallini3-Jan-13 9:06 
GeneralRe: a "new" operator failed Pin
a_matseevsky3-Jan-13 22:41
a_matseevsky3-Jan-13 22:41 
QuestionActiveX Memory leaks Pin
Manish K. Agarwal2-Jan-13 19:40
Manish K. Agarwal2-Jan-13 19:40 
AnswerRe: ActiveX Memory leaks Pin
April Fans3-Jan-13 15:23
April Fans3-Jan-13 15:23 
GeneralRe: ActiveX Memory leaks Pin
Richard MacCutchan3-Jan-13 22:29
mveRichard MacCutchan3-Jan-13 22:29 
AnswerRe: ActiveX Memory leaks Pin
April Fans3-Jan-13 15:50
April Fans3-Jan-13 15:50 
QuestionRe: ActiveX Memory leaks Pin
Manish K. Agarwal7-Jan-13 0:28
Manish K. Agarwal7-Jan-13 0:28 
QuestionFileSystemWatcher Class in Visual C++ 6.0 Pin
ForNow2-Jan-13 15:23
ForNow2-Jan-13 15:23 
AnswerRe: FileSystemWatcher Class in Visual C++ 6.0 Pin
Stephen Hewitt2-Jan-13 17:02
Stephen Hewitt2-Jan-13 17:02 

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.