Click here to Skip to main content
16,014,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Find files that are being used Pin
P Gibson15-Mar-06 6:06
P Gibson15-Mar-06 6:06 
GeneralRe: Find files that are being used Pin
David Crow15-Mar-06 6:09
David Crow15-Mar-06 6:09 
QuestionESC and DEL button Pin
mkoliv28-Sep-16 1:30
mkoliv28-Sep-16 1:30 
AnswerRe: ESC and DEL button Pin
Hamid_RT15-Mar-06 4:59
Hamid_RT15-Mar-06 4:59 
QuestionMouse Position Pin
pc_dev15-Mar-06 4:20
pc_dev15-Mar-06 4:20 
AnswerRe: Mouse Position Pin
toxcct15-Mar-06 4:28
toxcct15-Mar-06 4:28 
AnswerRe: Mouse Position Pin
Hamid_RT15-Mar-06 4:34
Hamid_RT15-Mar-06 4:34 
QuestionMDI Doc/View CDatabase app general questions Pin
23_44415-Mar-06 3:05
23_44415-Mar-06 3:05 
I am writing a MDI database app using a splitter window (upper pane = parent table) (lower pane= child table) and am unsure as to the responsibilities of each class. I have it working but am always trying to better myself.

I have a database object (CDatabase)
I have a recordset object (CRecordset)
I have a document object (CDocument)
I have several views (CFormView)
I have a CSplitterWnd hosting the CFormViews

I realize the document holds the data. So here are my questions

I have seen an example where the document holds a member variable of both the Recordset and the Database and am currently adopting this scenario.

But which class is responsible for actually creating the recordset or does it matter? I currently have the document creating the database and each formview class responsible for creating the recordset of its pane. My document holds a member pointer of the recordsets created in the view

Is it appropriate to use the UpdateAllViews from the CDocument class to invoke the OnUpdate of each view? Then overide the OnUpdate in the view class to run a requery and other housekeeping procedures. Normally I associate the UpdateAllViews with some sort of visual activity in the Views but with a database it's all about requerying and housekeeping.

Thanks
AnswerRe: MDI Doc/View CDatabase app general questions Pin
Dennis Gourjii15-Mar-06 3:17
Dennis Gourjii15-Mar-06 3:17 
GeneralRe: MDI Doc/View CDatabase app general questions Pin
23_44415-Mar-06 5:39
23_44415-Mar-06 5:39 
GeneralRe: MDI Doc/View CDatabase app general questions Pin
Dennis Gourjii16-Mar-06 2:55
Dennis Gourjii16-Mar-06 2:55 
Question[Message Deleted] Pin
ddmcr15-Mar-06 2:53
ddmcr15-Mar-06 2:53 
AnswerRe: Registering extension and icon for your application Pin
Dennis Gourjii15-Mar-06 3:07
Dennis Gourjii15-Mar-06 3:07 
GeneralRe: Registering extension and icon for your application Pin
toxcct15-Mar-06 4:30
toxcct15-Mar-06 4:30 
AnswerRe: Registering extension and icon for your application Pin
David Crow15-Mar-06 3:17
David Crow15-Mar-06 3:17 
QuestionWrite memory bitmap to BMP file? Pin
FleetAdmiral15-Mar-06 2:19
FleetAdmiral15-Mar-06 2:19 
AnswerRe: Write memory bitmap to BMP file? Pin
Hamid_RT15-Mar-06 2:40
Hamid_RT15-Mar-06 2:40 
AnswerRe: Write memory bitmap to BMP file? Pin
David Crow15-Mar-06 2:42
David Crow15-Mar-06 2:42 
QuestionCrystal Reports Dev 11 Pin
xdeveloper_del15-Mar-06 1:59
xdeveloper_del15-Mar-06 1:59 
QuestionHelp me E_FAIL Error Pin
dharani15-Mar-06 1:33
dharani15-Mar-06 1:33 
AnswerRe: Help me E_FAIL Error Pin
James R. Twine15-Mar-06 3:47
James R. Twine15-Mar-06 3:47 
GeneralRe: Help me E_FAIL Error Pin
dharani15-Mar-06 16:24
dharani15-Mar-06 16:24 
GeneralRe: Help me E_FAIL Error Pin
dharani15-Mar-06 17:30
dharani15-Mar-06 17:30 
QuestionNewbie - odbc/mysql Pin
antonaras_marcou15-Mar-06 1:14
antonaras_marcou15-Mar-06 1:14 
AnswerRe: Newbie - odbc/mysql Pin
David Crow15-Mar-06 2:44
David Crow15-Mar-06 2:44 

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.