Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to simulate DoEvents() in Visual C++? Pin
nguyenvhn13-Apr-06 23:26
nguyenvhn13-Apr-06 23:26 
GeneralRe: How to simulate DoEvents() in Visual C++? Pin
WithPointer13-Apr-06 23:35
WithPointer13-Apr-06 23:35 
AnswerRe: How to simulate DoEvents() in Visual C++? Pin
Branislav13-Apr-06 23:38
Branislav13-Apr-06 23:38 
QuestionCannot throw my own exception from dll (not exactly true, but please read) Pin
toxcct13-Apr-06 22:39
toxcct13-Apr-06 22:39 
AnswerRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:17
Cedric Moonen14-Apr-06 4:17 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
toxcct14-Apr-06 4:25
toxcct14-Apr-06 4:25 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:35
Cedric Moonen14-Apr-06 4:35 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
toxcct14-Apr-06 4:35
toxcct14-Apr-06 4:35 
one more thing.

instead of
catch (CSyntaxException& ex) {
    strDest.Format("Syntax error %d : %s", ex.GetExceptionNumber(), ex.GetMessage().c_str());
    m_peInput->SetSel(ex.GetErrorPos(), ex.GetErrorPos());
}

i also tried the following codes, unsuccelsfully (all resulting in the same runtime crash when calling c_str()) :
catch (CSyntaxException& ex) {
    CString strTmp = ex.GetMessage().<code>c_str()</code>;
    strDest.Format("Syntax error %d : %s", ex.GetExceptionNumber(), strTmp);
    m_peInput->SetSel(ex.GetErrorPos(), ex.GetErrorPos());
}

catch (CSyntaxException& ex) {
    char* strTmp = new char[ex.GetMessage().size()+1];
    strcpy(strTmp, ex.GetMessage().<code>c_str()</code>);
    strDest.Format("Syntax error %d : %s", ex.GetExceptionNumber(), strTmp);
    m_peInput->SetSel(ex.GetErrorPos(), ex.GetErrorPos());
}

GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:38
Cedric Moonen14-Apr-06 4:38 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
toxcct14-Apr-06 4:46
toxcct14-Apr-06 4:46 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:52
Cedric Moonen14-Apr-06 4:52 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
toxcct15-Apr-06 1:14
toxcct15-Apr-06 1:14 
Generalat last, solvedn thanks to you ! Pin
toxcct15-Apr-06 8:33
toxcct15-Apr-06 8:33 
GeneralRe: at last, solvedn thanks to you ! Pin
Cedric Moonen16-Apr-06 1:45
Cedric Moonen16-Apr-06 1:45 
AnswerRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:43
Cedric Moonen14-Apr-06 4:43 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
toxcct14-Apr-06 4:45
toxcct14-Apr-06 4:45 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:49
Cedric Moonen14-Apr-06 4:49 
GeneralRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Cedric Moonen14-Apr-06 4:54
Cedric Moonen14-Apr-06 4:54 
AnswerRe: Cannot throw my own exception from dll (not exactly true, but please read) Pin
Stephen Hewitt14-Apr-06 21:28
Stephen Hewitt14-Apr-06 21:28 
QuestionWhy VC++? Pin
HakunaMatada13-Apr-06 22:36
HakunaMatada13-Apr-06 22:36 
AnswerRe: Why VC++? Pin
toxcct13-Apr-06 22:42
toxcct13-Apr-06 22:42 
GeneralRe: Why VC++? Pin
HakunaMatada13-Apr-06 23:10
HakunaMatada13-Apr-06 23:10 
AnswerRe: Why VC++? Pin
David Crow14-Apr-06 2:50
David Crow14-Apr-06 2:50 
Questioninclude files Pin
uriblum13-Apr-06 22:35
uriblum13-Apr-06 22:35 
AnswerRe: include files Pin
toxcct13-Apr-06 22:42
toxcct13-Apr-06 22:42 

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.