Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding Items Pin
VinayCool15-May-06 0:06
VinayCool15-May-06 0:06 
GeneralRe: Adding Items Pin
Russell'15-May-06 0:16
Russell'15-May-06 0:16 
GeneralRe: Adding Items Pin
Eytukan15-May-06 0:17
Eytukan15-May-06 0:17 
GeneralRe: Adding Items Pin
Hamid_RT15-May-06 4:12
Hamid_RT15-May-06 4:12 
AnswerRe: Adding Items Pin
_AnsHUMAN_ 14-May-06 21:00
_AnsHUMAN_ 14-May-06 21:00 
AnswerRe: Adding Items Pin
Maximilien15-May-06 3:04
Maximilien15-May-06 3:04 
GeneralRe: Adding Items Pin
Hamid_RT15-May-06 4:13
Hamid_RT15-May-06 4:13 
AnswerRe: Adding Items Pin
David Crow15-May-06 6:21
David Crow15-May-06 6:21 
vinaycool wrote:
CStatusDlg status;
status.m_OUT.AddString(e->filename);


There are several things wrong here, namely status is a CStatusDlg object whose underlying window has not yet been created. At a minimum, you need to do something like:

CStatusDlg status;
status.DoModal();
...
BOOL CStatusDlg::OnInitDialog()
{
    CDialog::OnInitDialog();
    
    // now you can initialize m_OUT 
    m_OUT.AddString("1");
    m_OUT.AddString("Zoo");
}
Until CStatusDlg's window and the m_OUT control actually exist, calling AddString() will obviously result in an error.


"The largest fire starts but with the smallest spark." - David Crow


GeneralRe: Adding Items Pin
VinayCool15-May-06 20:40
VinayCool15-May-06 20:40 
GeneralRe: Adding Items Pin
David Crow16-May-06 4:32
David Crow16-May-06 4:32 
QuestionCopy constructor Pin
Scorpio14-May-06 19:36
Scorpio14-May-06 19:36 
AnswerRe: Copy constructor Pin
Nibu babu thomas14-May-06 20:01
Nibu babu thomas14-May-06 20:01 
AnswerRe: Copy constructor Pin
Alton Williams7-Jun-06 3:06
Alton Williams7-Jun-06 3:06 
QuestionIOCompletion port question about file IO Pin
followait14-May-06 19:03
followait14-May-06 19:03 
QuestionRetrival of from EXE Pin
birajendu14-May-06 18:42
birajendu14-May-06 18:42 
AnswerRe: Retrival of from EXE Pin
Ryan Binns14-May-06 18:58
Ryan Binns14-May-06 18:58 
AnswerRe: Retrival of from EXE Pin
_AnsHUMAN_ 14-May-06 19:00
_AnsHUMAN_ 14-May-06 19:00 
GeneralRe: Retrival of from EXE Pin
birajendu14-May-06 19:12
birajendu14-May-06 19:12 
GeneralRe: Retrival of from EXE Pin
ThatsAlok14-May-06 23:40
ThatsAlok14-May-06 23:40 
QuestionSending Bytes to Activex VC++.Net Pin
satsumatable14-May-06 18:40
satsumatable14-May-06 18:40 
Questionhow to convert series of BMP to a movie(AVI) Pin
ramyasangeet14-May-06 18:38
ramyasangeet14-May-06 18:38 
AnswerRe: how to convert series of BMP to a movie(AVI) Pin
Cool Ju14-May-06 19:06
Cool Ju14-May-06 19:06 
Questionhelp on MFC (urgent) Pin
makaveli_0714-May-06 17:47
makaveli_0714-May-06 17:47 
AnswerRe: help on MFC (urgent) Pin
John M. Drescher14-May-06 18:09
John M. Drescher14-May-06 18:09 
GeneralRe: help on MFC (urgent) Pin
makaveli_0714-May-06 18:24
makaveli_0714-May-06 18:24 

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.