Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't terminate network thread. Pin
JT Anderson13-Aug-02 11:09
JT Anderson13-Aug-02 11:09 
GeneralRe: Can't terminate network thread. Pin
JohnnyG13-Aug-02 15:36
JohnnyG13-Aug-02 15:36 
Generallink error Pin
RocardoS13-Aug-02 9:37
sussRocardoS13-Aug-02 9:37 
GeneralRe: link error Pin
Tomasz Sowinski13-Aug-02 9:40
Tomasz Sowinski13-Aug-02 9:40 
GeneralRe: link error Pin
RocardoS13-Aug-02 9:56
sussRocardoS13-Aug-02 9:56 
GeneralRe: link error Pin
Tomasz Sowinski13-Aug-02 10:01
Tomasz Sowinski13-Aug-02 10:01 
GeneralRe: link error Pin
RocardoS13-Aug-02 10:16
sussRocardoS13-Aug-02 10:16 
Generalmultiple recordsets Pin
danag13-Aug-02 9:30
danag13-Aug-02 9:30 
I want to display the 2 fields of all records in a table in listbox.

my program is crshing. i dont know why. can someone help me?
here is the code snippets..

BOOL CMgen1Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;

// TODO: add reinitialization code here
// (SDI documents will reuse this document)

if(m_mgen1Set == NULL) {
m_mgen1Set = new CMgen1Set(&m_database);
CString strConnect = m_mgen1Set->GetDefaultConnect();
m_database.Open(NULL, FALSE, FALSE, strConnect, FALSE);
}


return TRUE;
}

void CMgen1View::OnInitialUpdate()
{
m_pSet = GetDocument()->m_mgen1Set;
CRecordView::OnInitialUpdate();
LoadListbox();

}

void CMgen1View::LoadListbox()
{
CMgen1Doc* pDoc = GetDocument();
CListBox* pLB = (CListBox*) GetDlgItem(IDC_LIST1);

CMgen1Set sect(&pDoc->m_database);

sect.Open();
while(!sect.IsEOF()) {
pLB->AddString(sect.m_CourseID + " " + sect.m_SectionNo);
sect.MoveNext();
}
}

GeneralRe: multiple recordsets Pin
Bill Wilson13-Aug-02 13:09
Bill Wilson13-Aug-02 13:09 
GeneralRe: multiple recordsets Pin
danag13-Aug-02 13:35
danag13-Aug-02 13:35 
GeneralRe: multiple recordsets Pin
Alexander Wiseman13-Aug-02 14:54
Alexander Wiseman13-Aug-02 14:54 
Generalmodeless dialog-Resizing Pin
udayGovekar13-Aug-02 9:23
udayGovekar13-Aug-02 9:23 
GeneralRe: modeless dialog-Resizing Pin
Tomasz Sowinski13-Aug-02 9:26
Tomasz Sowinski13-Aug-02 9:26 
QuestionHow do i use acmFormatEnum? All help is appreciated! Pin
redeemer13-Aug-02 9:10
redeemer13-Aug-02 9:10 
AnswerRe: How do i use acmFormatEnum? All help is appreciated! Pin
Ernest Laurentin13-Aug-02 10:46
Ernest Laurentin13-Aug-02 10:46 
AnswerRe: How do i use acmFormatEnum? All help is appreciated! Pin
Ernest Laurentin14-Aug-02 17:40
Ernest Laurentin14-Aug-02 17:40 
GeneralCOleSafeArray Pin
Mazdak13-Aug-02 9:08
Mazdak13-Aug-02 9:08 
GeneralRe: COleSafeArray Pin
Ernest Laurentin13-Aug-02 10:06
Ernest Laurentin13-Aug-02 10:06 
Generalchar representation of a double Pin
senorbuckwheat13-Aug-02 8:22
senorbuckwheat13-Aug-02 8:22 
GeneralRe: char representation of a double Pin
Chris Losinger13-Aug-02 8:30
professionalChris Losinger13-Aug-02 8:30 
GeneralRe: char representation of a double Pin
Tomasz Sowinski13-Aug-02 8:31
Tomasz Sowinski13-Aug-02 8:31 
Generalmodal dialog range checking Pin
jimNLX13-Aug-02 8:19
jimNLX13-Aug-02 8:19 
GeneralRe: modal dialog range checking Pin
Tomasz Sowinski13-Aug-02 8:21
Tomasz Sowinski13-Aug-02 8:21 

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.