Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: playing a movie in a dialog-box? Pin
Prakash Nadar7-Apr-04 6:19
Prakash Nadar7-Apr-04 6:19 
Generalpointer to virtual function Pin
RalfPeter7-Apr-04 5:56
RalfPeter7-Apr-04 5:56 
GeneralRe: pointer to virtual function Pin
Mike Dimmick7-Apr-04 6:24
Mike Dimmick7-Apr-04 6:24 
GeneralRe: pointer to virtual function Pin
Prakash Nadar7-Apr-04 6:29
Prakash Nadar7-Apr-04 6:29 
GeneralRe: pointer to virtual function Pin
RalfPeter7-Apr-04 11:13
RalfPeter7-Apr-04 11:13 
GeneralC++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 5:45
Qualvis7-Apr-04 5:45 
GeneralRe: C++ & MFC -> Listbox Question Pin
David Crow7-Apr-04 5:47
David Crow7-Apr-04 5:47 
GeneralRe: C++ & MFC -> Listbox Question Pin
Wes Aday7-Apr-04 11:13
professionalWes Aday7-Apr-04 11:13 
You are trying to do 2 different things.

BOOL CDialog1::OnInitDialog()
m_ListBox.AddString("jef");


This list box belongs to CDialog1.

void CCamDialog::AddListBox()
{
m_ListBox->AddString("camera");
}

This listbox belongs to CCamDialog.

As I understand what you are trying to do, you are trying to add "camera" to the same listbox as "jef". Unless you have a pointer to the CDialog1::m_Listbox in the CCamDialog, you are trying to add "camera" to a listbox that may or may not exist. My guess is that CCamDialog::m_Listbox doesn't exists and that will give you a assertion failure.



Artificial intelligence is no match for natural
stupidity.

GeneralRe: C++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 11:46
Qualvis7-Apr-04 11:46 
GeneralRe: C++ & MFC -> Listbox Question Pin
Wes Aday7-Apr-04 12:09
professionalWes Aday7-Apr-04 12:09 
GeneralRe: C++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 22:08
Qualvis7-Apr-04 22:08 
GeneralRe: C++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 22:32
Qualvis7-Apr-04 22:32 
GeneralRe: C++ & MFC -> Listbox Question Pin
Wes Aday8-Apr-04 7:08
professionalWes Aday8-Apr-04 7:08 
Generalsetting page orientation Pin
kzyczynski7-Apr-04 5:31
kzyczynski7-Apr-04 5:31 
GeneralRe: setting page orientation Pin
Roger Allen7-Apr-04 5:38
Roger Allen7-Apr-04 5:38 
GeneralRe: setting page orientation Pin
kzyczynski7-Apr-04 10:20
kzyczynski7-Apr-04 10:20 
GeneralSocket listen backlog woes Pin
Rob Caldecott7-Apr-04 5:15
Rob Caldecott7-Apr-04 5:15 
GeneralRe: Socket listen backlog woes Pin
beetung7-Apr-04 8:14
beetung7-Apr-04 8:14 
GeneralRe: Socket listen backlog woes Pin
Rob Caldecott7-Apr-04 9:53
Rob Caldecott7-Apr-04 9:53 
GeneralRe: Socket listen backlog woes Pin
Johnny ²7-Apr-04 8:56
Johnny ²7-Apr-04 8:56 
GeneralRe: Socket listen backlog woes Pin
Rob Caldecott7-Apr-04 9:52
Rob Caldecott7-Apr-04 9:52 
GeneralRe: Socket listen backlog woes Pin
Paul Ranson8-Apr-04 3:12
Paul Ranson8-Apr-04 3:12 
QuestionIs transparent window needed? Pin
conrad Braam7-Apr-04 4:49
conrad Braam7-Apr-04 4:49 
GeneralCreating a GUI for a C program Pin
EstC7-Apr-04 4:36
EstC7-Apr-04 4:36 
GeneralRe: Creating a GUI for a C program Pin
Roman Nurik7-Apr-04 4:55
Roman Nurik7-Apr-04 4:55 

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.