Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to compress files in a ZIP file ?? Pin
Roman Fadeyev9-Dec-02 5:57
Roman Fadeyev9-Dec-02 5:57 
AnswerRe: How to compress files in a ZIP file ?? Pin
carrie9-Dec-02 8:56
carrie9-Dec-02 8:56 
GeneralMSLU Pin
Irona9-Dec-02 5:34
Irona9-Dec-02 5:34 
GeneralUNICODE conversion Pin
Member 3600829-Dec-02 5:25
Member 3600829-Dec-02 5:25 
GeneralRe: UNICODE conversion Pin
Le centriste9-Dec-02 7:37
Le centriste9-Dec-02 7:37 
GeneralSDI Pin
will13839-Dec-02 5:03
will13839-Dec-02 5:03 
GeneralRe: SDI Pin
#realJSOP9-Dec-02 5:19
professional#realJSOP9-Dec-02 5:19 
GeneralRe: SDI Pin
will13839-Dec-02 5:37
will13839-Dec-02 5:37 
So what you mean is this:

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTheDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CView1));
AddDocTemplate(pDocTemplate);

CSingleDocTemplate* pDocTemplate2;
pDocTemplate2 = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTheDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CView2));
AddDocTemplate(pDocTemplate2);

CSingleDocTemplate* pDocTemplate3;
pDocTemplate3 = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTheDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CView3));
AddDocTemplate(pDocTemplate3);

If I'm understanding correctly. But in this case, are the document views all being associated with the same Document instance? If this is the case, do you know why this occurrs?

This being the case, in each individual view class I should be able to perform this:
CCalibrationDoc *pDoc = this->GetDocument();
pDoc->GetSomeDataStuff(...);

And they all should return the same data from that single instance of the Document Object.

Based on this info I should also be able to set data in the document object as well right? If so, does the frame work handle any possible thread lock issues that could occur?


Thank you very much. I appreciate it greatly. There is VERY little internal help available for me. Actually, there is none and I'm on my own, so I appreciate it alot.

Dan
GeneralFull Screen Dialog Bug Pin
Scott H. Settlemier9-Dec-02 4:39
Scott H. Settlemier9-Dec-02 4:39 
GeneralRe: Full Screen Dialog Bug Pin
#realJSOP9-Dec-02 5:14
professional#realJSOP9-Dec-02 5:14 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier9-Dec-02 5:24
Scott H. Settlemier9-Dec-02 5:24 
GeneralRe: Full Screen Dialog Bug Pin
mediamaster409-Dec-02 6:15
mediamaster409-Dec-02 6:15 
GeneralRe: Full Screen Dialog Bug Pin
Joan M9-Dec-02 20:23
professionalJoan M9-Dec-02 20:23 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier10-Dec-02 4:01
Scott H. Settlemier10-Dec-02 4:01 
GeneralRe: Full Screen Dialog Bug Pin
mediamaster4010-Dec-02 4:23
mediamaster4010-Dec-02 4:23 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier10-Dec-02 6:41
Scott H. Settlemier10-Dec-02 6:41 
Generalfopen and CStringArray Pin
Anonymous9-Dec-02 3:09
Anonymous9-Dec-02 3:09 
GeneralRe: fopen and CStringArray Pin
Gary Kirkham9-Dec-02 3:25
Gary Kirkham9-Dec-02 3:25 
GeneralRe: fopen and CStringArray Pin
Nitron9-Dec-02 4:10
Nitron9-Dec-02 4:10 
GeneralRe: fopen and CStringArray Pin
Christian Graus9-Dec-02 8:59
protectorChristian Graus9-Dec-02 8:59 
GeneralRe: fopen and CStringArray Pin
Joe Woodbury9-Dec-02 19:18
professionalJoe Woodbury9-Dec-02 19:18 
Generalerror 1063 in StartServiceCtrlDispatcher Pin
maloo9-Dec-02 2:26
maloo9-Dec-02 2:26 
GeneralRe: error 1063 in StartServiceCtrlDispatcher Pin
Debs9-Dec-02 23:38
Debs9-Dec-02 23:38 
GeneralCTreeCtrl::OnLButtonUp doesn't get called Pin
Arjan Schouten9-Dec-02 2:22
Arjan Schouten9-Dec-02 2:22 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Tibor Blazko9-Dec-02 3:13
Tibor Blazko9-Dec-02 3:13 

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.