Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to play .wav file and control speed of the playing .wav file Pin
S Douglas8-Jan-07 21:34
professionalS Douglas8-Jan-07 21:34 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Hamid_RT8-Jan-07 17:44
Hamid_RT8-Jan-07 17:44 
QuestionHow to play .wav file and control speed of the playing .wav file Pin
CraZyToLearn8-Jan-07 0:49
CraZyToLearn8-Jan-07 0:49 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Rajesh R Subramanian8-Jan-07 18:39
professionalRajesh R Subramanian8-Jan-07 18:39 
QuestionPost(Thread)Message() and System-wide hooks Pin
PatrykDabrowski8-Jan-07 0:18
PatrykDabrowski8-Jan-07 0:18 
QuestionProblem detecting Availability of Network Path Pin
Sudhir Mangla7-Jan-07 23:53
professionalSudhir Mangla7-Jan-07 23:53 
AnswerRe: Problem detecting Availability of Network Path Pin
David Crow8-Jan-07 4:02
David Crow8-Jan-07 4:02 
QuestionQuestion about CFileDialog class Pin
eusto7-Jan-07 23:02
eusto7-Jan-07 23:02 
I have a dialog with two browse buttons on it. If i press the frist one, select a file than press the seccond one, my application crashes and i can't figure out why Frown | :( . Here's the code:

//first browse button
void CAddEquipDlg::OnBnClickedBrowsedb()
{
    char szFilters[]=
        "Access DB (*.mdb)|*.mdb|All Files (*.*)|*.*||";

    CFileDialog fDlg(TRUE,
        "mdb",
        "*.mdb",
        OFN_FILEMUSTEXIST| OFN_HIDEREADONLY,
        szFilters, 
        NULL
        );
    if (fDlg.DoModal()==IDOK)
    {
        m_sDB = fDlg.GetPathName();
    }
    SetCurrentDirectory(m_sCurDir);
    SetDlgItemText(IDC_DB,m_sDB);
    AfxGetApp()->WriteProfileString("Connection", "Database",m_sDB);
}
//seccond browse button
void CAddEquipDlg::OnBnClickedBrowseequip()
{

    char szFilters[]=
        "CSV Files (*.csv)|*.csv|All Files (*.*)|*.*||";

    CFileDialog fDlg(TRUE,
        "csv",
        "*.csv",
        OFN_FILEMUSTEXIST| OFN_HIDEREADONLY,
        szFilters, 
        NULL
        );
    if (fDlg.DoModal()==IDOK)
    {
        CString bla = fDlg.GetFileTitle();
        m_sEQUIP = fDlg.GetPathName();
    }
    SetCurrentDirectory(m_sCurDir);
    SetDlgItemText(IDC_EQUIP,m_sEQUIP);    
}


It crashes two out of tree times (with a send/don't send error message in release) and this is the debug info
First-chance exception at 0x7ca5159e in AddEquip.exe: 0xC0000005: Access violation reading location 0x62883720.
Unhandled exception at 0x7ca5159e in AddEquip.exe: 0xC0000005: Access violation reading location 0x62883720.

QuestionRe: Question about CFileDialog class Pin
prasad_som7-Jan-07 23:08
prasad_som7-Jan-07 23:08 
AnswerRe: Question about CFileDialog class Pin
Cedric Moonen7-Jan-07 23:09
Cedric Moonen7-Jan-07 23:09 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian7-Jan-07 23:10
professionalRajesh R Subramanian7-Jan-07 23:10 
AnswerRe: Question about CFileDialog class Pin
eusto7-Jan-07 23:27
eusto7-Jan-07 23:27 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian7-Jan-07 23:38
professionalRajesh R Subramanian7-Jan-07 23:38 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 0:25
eusto8-Jan-07 0:25 
GeneralRe: Question about CFileDialog class Pin
Roger Stoltz8-Jan-07 0:40
Roger Stoltz8-Jan-07 0:40 
GeneralRe: Question about CFileDialog class Pin
eusto8-Jan-07 1:53
eusto8-Jan-07 1:53 
GeneralRe: Question about CFileDialog class Pin
Hamid_RT8-Jan-07 0:41
Hamid_RT8-Jan-07 0:41 
GeneralRe: Question about CFileDialog class Pin
eusto8-Jan-07 1:45
eusto8-Jan-07 1:45 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian8-Jan-07 3:43
professionalRajesh R Subramanian8-Jan-07 3:43 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 5:10
eusto8-Jan-07 5:10 
QuestionRe: Question about CFileDialog class Pin
David Crow8-Jan-07 4:08
David Crow8-Jan-07 4:08 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 7:45
eusto8-Jan-07 7:45 
QuestionRe: Question about CFileDialog class Pin
David Crow8-Jan-07 8:26
David Crow8-Jan-07 8:26 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 9:15
eusto8-Jan-07 9:15 
GeneralRe: Question about CFileDialog class Pin
David Crow8-Jan-07 9:30
David Crow8-Jan-07 9:30 

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.