Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create and use a lib file ? Pin
Cedric Moonen10-Dec-06 21:58
Cedric Moonen10-Dec-06 21:58 
GeneralRe: How to create and use a lib file ? Pin
rgbalpha10-Dec-06 22:02
rgbalpha10-Dec-06 22:02 
GeneralRe: How to create and use a lib file ? Pin
Hamid_RT10-Dec-06 23:16
Hamid_RT10-Dec-06 23:16 
AnswerRe: How to create and use a lib file ? Pin
Rems Kris11-Dec-06 22:58
Rems Kris11-Dec-06 22:58 
QuestionHow can we find out network disable or enable programatically Pin
johnalek10-Dec-06 21:45
johnalek10-Dec-06 21:45 
AnswerRe: How can we find out network disable or enable programatically Pin
bob1697211-Dec-06 2:09
bob1697211-Dec-06 2:09 
AnswerRe: How can we find out network disable or enable programatically Pin
David Crow11-Dec-06 3:53
David Crow11-Dec-06 3:53 
Questionhow to new a doc/view in program with parameters Pin
rgbalpha10-Dec-06 21:42
rgbalpha10-Dec-06 21:42 
Hello,

My MFC is MDI program. I have two doctemplate in CMyApp, that is, m_pDocTemplate1 and m_pDocTemplate2. In CMyDoc1, I process some variables m_var, and then send to CMyDoc2 for processing. I handle a command to create a doc of doctemplate2 type. I do as follows:
void CMyDoc1::OnCmd()<br />
{<br />
    static_cast<CMyApp*>(AfxGetApp())->m_pDocTemplate2->OpenDocumentFile(NULL, TRUE);<br />
}

This can only create a new empty doc/view. But what I need is to create a doc and at the same time, the CMyDoc1::m_var can be sent to CMyDoc2.
How can it implement? Does anyone give me some light?
Thanks in advance.

Best Regards,
Haifeng
AnswerRe: how to new a doc/view in program with parameters Pin
Sam Hobbs10-Dec-06 23:48
Sam Hobbs10-Dec-06 23:48 
AnswerRe: how to new a doc/view in program with parameters Pin
rgbalpha11-Dec-06 1:17
rgbalpha11-Dec-06 1:17 
GeneralRe: how to new a doc/view in program with parameters Pin
Sam Hobbs11-Dec-06 1:25
Sam Hobbs11-Dec-06 1:25 
GeneralRe: how to new a doc/view in program with parameters Pin
rgbalpha11-Dec-06 1:45
rgbalpha11-Dec-06 1:45 
GeneralRe: how to new a doc/view in program with parameters Pin
Sam Hobbs11-Dec-06 1:53
Sam Hobbs11-Dec-06 1:53 
GeneralRe: how to new a doc/view in program with parameters Pin
rgbalpha11-Dec-06 2:20
rgbalpha11-Dec-06 2:20 
GeneralRe: how to new a doc/view in program with parameters Pin
Sam Hobbs11-Dec-06 17:15
Sam Hobbs11-Dec-06 17:15 
GeneralRe: how to new a doc/view in program with parameters Pin
rgbalpha11-Dec-06 18:20
rgbalpha11-Dec-06 18:20 
GeneralRe: how to new a doc/view in program with parameters Pin
Sam Hobbs11-Dec-06 1:30
Sam Hobbs11-Dec-06 1:30 
AnswerRe: how to new a doc/view in program with parameters Pin
Sam Hobbs11-Dec-06 1:40
Sam Hobbs11-Dec-06 1:40 
GeneralRe: how to new a doc/view in program with parameters Pin
rgbalpha11-Dec-06 17:07
rgbalpha11-Dec-06 17:07 
QuestionHow to handle two joysticks at the same times Pin
LaHaHa10-Dec-06 21:11
LaHaHa10-Dec-06 21:11 
JokeRe: How to handle two joysticks at the same times Pin
Programm3r10-Dec-06 22:46
Programm3r10-Dec-06 22:46 
GeneralRe: How to handle two joysticks at the same times Pin
LaHaHa11-Dec-06 13:04
LaHaHa11-Dec-06 13:04 
QuestionDialogBox Problem... Pin
Neo Andreson10-Dec-06 20:28
Neo Andreson10-Dec-06 20:28 
AnswerRe: DialogBox Problem... Pin
Naveen10-Dec-06 20:46
Naveen10-Dec-06 20:46 
AnswerRe: DialogBox Problem... Pin
Hamid_RT10-Dec-06 23:14
Hamid_RT10-Dec-06 23:14 

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.