Click here to Skip to main content
16,011,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhave some wrap-class for parse regular expression? Pin
Jeason Zhao24-Jul-01 22:10
Jeason Zhao24-Jul-01 22:10 
AnswerRe: have some wrap-class for parse regular expression? Pin
Joaquín M López Muñoz25-Jul-01 0:53
Joaquín M López Muñoz25-Jul-01 0:53 
QuestionSimple question: How many BYTEs have in UINT type ? Pin
24-Jul-01 21:47
suss24-Jul-01 21:47 
AnswerRe: Simple question: How many BYTEs have in UINT type ? Pin
Claudius Mokler24-Jul-01 22:02
Claudius Mokler24-Jul-01 22:02 
GeneralThanks ! sizeof returns int ! Is int=BYTE always ? Pin
24-Jul-01 22:32
suss24-Jul-01 22:32 
Generalabout microsoft agent 2.0 ActiveX Pin
24-Jul-01 21:29
suss24-Jul-01 21:29 
GeneralDesign issue Pin
- Emanuele -24-Jul-01 21:29
- Emanuele -24-Jul-01 21:29 
GeneralRe: Design issue Pin
Doug Garno24-Jul-01 23:53
Doug Garno24-Jul-01 23:53 
You have the basic idea. The way that I do it is to pass the list control to the Doc and have the doc populate the list, that way the View doesn't need to know anything about the database. Something like this:

CDoc::AddCustomers( CListCtrl* pList )
{
// Reset the list control content
pList->DeleteAllItems();

// I'm assuming that you somehow get a CDaoRecordset for the Customer table
// and not accessing the database object directly.
m_MyDaoDB->MoveFirst();
while( m_MyDaoDB->IsEOF() != 0 )
{
// Add the record to the list
m_MyDaoDB->MoveNext();
}
}

Don't know if this is a better OO way, but the Doc should know about the data, and the view handles the UI. I like to keep access to the data in the Doc and the View handles the display and user interaction.

GeneralRe: Design issue Pin
Tomasz Sowinski25-Jul-01 1:54
Tomasz Sowinski25-Jul-01 1:54 
Questionnowrap in CRichEditCtrl? Pin
24-Jul-01 21:01
suss24-Jul-01 21:01 
AnswerRe: nowrap in CRichEditCtrl? Pin
25-Jul-01 1:51
suss25-Jul-01 1:51 
AnswerRe: nowrap in CRichEditCtrl? Pin
25-Jul-01 2:04
suss25-Jul-01 2:04 
GeneralGet system time in 6 DWORD. Please HELP !!! Pin
24-Jul-01 20:41
suss24-Jul-01 20:41 
GeneralRe: Get system time in 6 DWORD. Please HELP !!! Pin
Michael Dunn24-Jul-01 20:57
sitebuilderMichael Dunn24-Jul-01 20:57 
GeneralGetSystemTime() will give me 8 WORDs and I need only 6 WORDs !!! Pin
24-Jul-01 21:17
suss24-Jul-01 21:17 
GeneralRe: GetSystemTime() will give me 8 WORDs and I need only 6 WORDs !!! Pin
Paolo Messina25-Jul-01 2:50
professionalPaolo Messina25-Jul-01 2:50 
GeneralAccess Database Help Pin
Cabadam24-Jul-01 17:50
Cabadam24-Jul-01 17:50 
GeneralRe: Access Database Help Pin
- Emanuele -24-Jul-01 21:18
- Emanuele -24-Jul-01 21:18 
GeneralRe: Access Database Help Pin
Cabadam25-Jul-01 1:08
Cabadam25-Jul-01 1:08 
GeneralRe: Access Database Help Pin
- Emanuele -25-Jul-01 2:44
- Emanuele -25-Jul-01 2:44 
GeneralRe: Access Database Help Pin
Doug Garno25-Jul-01 3:58
Doug Garno25-Jul-01 3:58 
GeneralRe: Access Database Help Pin
Cabadam25-Jul-01 5:08
Cabadam25-Jul-01 5:08 
GeneralRe: Access Database Help Pin
Doug Garno25-Jul-01 6:27
Doug Garno25-Jul-01 6:27 
GeneralRe: Access Database Help Pin
Oscar Vazquez25-Jul-01 8:32
Oscar Vazquez25-Jul-01 8:32 
Generaltext in ActiveX control window Pin
Bok David24-Jul-01 17:46
Bok David24-Jul-01 17:46 

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.