Click here to Skip to main content
15,886,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
«_Superman_»29-Nov-09 8:45
professional«_Superman_»29-Nov-09 8:45 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr29-Nov-09 13:07
Larry Mills Sr29-Nov-09 13:07 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow29-Nov-09 15:57
David Crow29-Nov-09 15:57 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr1-Dec-09 3:01
Larry Mills Sr1-Dec-09 3:01 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow1-Dec-09 3:04
David Crow1-Dec-09 3:04 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr2-Dec-09 2:35
Larry Mills Sr2-Dec-09 2:35 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow2-Dec-09 2:42
David Crow2-Dec-09 2:42 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr2-Dec-09 15:05
Larry Mills Sr2-Dec-09 15:05 
//This crashes because as you indicated the window has not been created yet:
void CCookItDBView::OnInitialUpdate()
{
     m_pSet = &GetDocument()->m_CookItDBSet;
     SetColumsIngred();
     CRecordView::OnInitialUpdate();
}

// THIS IS CORRECT   IT WORKS NOW
void CCookItDBView::OnInitialUpdate()
{
     m_pSet = &GetDocument()->m_CookItDBSet;
     CRecordView::OnInitialUpdate();
     SetColumsIngred();
}

I didn't understand you previous comment until in debug I caught it.

Thanks David.

Question: I have several "Tables" in the database that hopefully will point me to data contained in other tables that are not presently linked in the RecordSet. For example: Table "RecipeData" is not linked in the RecordSet (I didn't select it when I selected the Tables) can I still do this:   CString str = m_pSet->[RecordDate].Recipe;

A C++ programming language novice, but striving to learn

AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow2-Dec-09 17:44
David Crow2-Dec-09 17:44 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr3-Dec-09 14:58
Larry Mills Sr3-Dec-09 14:58 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow3-Dec-09 15:58
David Crow3-Dec-09 15:58 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr4-Dec-09 2:51
Larry Mills Sr4-Dec-09 2:51 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow4-Dec-09 7:48
David Crow4-Dec-09 7:48 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr4-Dec-09 8:02
Larry Mills Sr4-Dec-09 8:02 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow4-Dec-09 9:06
David Crow4-Dec-09 9:06 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr4-Dec-09 13:52
Larry Mills Sr4-Dec-09 13:52 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow7-Dec-09 2:59
David Crow7-Dec-09 2:59 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr7-Dec-09 5:13
Larry Mills Sr7-Dec-09 5:13 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow7-Dec-09 5:27
David Crow7-Dec-09 5:27 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr7-Dec-09 5:35
Larry Mills Sr7-Dec-09 5:35 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow7-Dec-09 8:49
David Crow7-Dec-09 8:49 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr7-Dec-09 13:30
Larry Mills Sr7-Dec-09 13:30 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow8-Dec-09 3:24
David Crow8-Dec-09 3:24 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? [modified] Pin
Larry Mills Sr7-Dec-09 14:05
Larry Mills Sr7-Dec-09 14:05 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow8-Dec-09 3:20
David Crow8-Dec-09 3:20 

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.