Click here to Skip to main content
15,925,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhaving trouble creating two docs for a CFormView MDI Pin
ns2-Jul-02 4:39
ns2-Jul-02 4:39 
GeneralRe: having trouble creating two docs for a CFormView MDI Pin
Chris Losinger2-Jul-02 4:41
professionalChris Losinger2-Jul-02 4:41 
GeneralRe: having trouble creating two docs for a CFormView MDI Pin
ns2-Jul-02 4:53
ns2-Jul-02 4:53 
GeneralRe: having trouble creating two docs for a CFormView MDI Pin
ns2-Jul-02 5:45
ns2-Jul-02 5:45 
GeneralRe: having trouble creating two docs for a CFormView MDI Pin
Chris Losinger2-Jul-02 6:27
professionalChris Losinger2-Jul-02 6:27 
Generalpassing variables between Doc and View in MDI Pin
2-Jul-02 4:24
suss2-Jul-02 4:24 
Hello,

This is in regards to MDI architecture.

I have a CString that gets set to (lpszPathName) on the OpenDocument function inside the Doc class.

I want to access this string in the View class, and I don't know how to access it.

I tried this.
(in Doc Class)
m_String = lpszPathName;
AfxMessageBox(m_String);

This MessageBox display the Pathname as I wanted.

(in View class)
CMyView NewView;
AfxMessageBox( NewView.m_String );

This MessageBox displays a blank box. Obviously, the string isn't passing as I thought it would.

Does anyone know how I could do this?

Thanks a whole lot.


GeneralRe: passing variables between Doc and View in MDI Pin
#realJSOP2-Jul-02 4:31
professional#realJSOP2-Jul-02 4:31 
GeneralRe: passing variables between Doc and View in MDI Pin
ns2-Jul-02 4:42
ns2-Jul-02 4:42 
GeneralRe: passing variables between Doc and View in MDI Pin
2-Jul-02 5:03
suss2-Jul-02 5:03 
Generalwant to set a variable from a view in a different document Pin
ns2-Jul-02 4:14
ns2-Jul-02 4:14 
GeneralRe: want to set a variable from a view in a different document Pin
#realJSOP2-Jul-02 4:33
professional#realJSOP2-Jul-02 4:33 
QuestionWrong drive count ? Pin
chen2-Jul-02 3:38
chen2-Jul-02 3:38 
AnswerRe: Wrong drive count ? Pin
Mike Nordell2-Jul-02 6:31
Mike Nordell2-Jul-02 6:31 
General*.AXW ( Wizard) from DirectX 8.1 and Visual Studio 7.0 Pin
Braulio Dez2-Jul-02 3:35
Braulio Dez2-Jul-02 3:35 
GeneralRe: *.AXW ( Wizard) from DirectX 8.1 and Visual Studio 7.0 Pin
Jeremy Falcon2-Jul-02 6:41
professionalJeremy Falcon2-Jul-02 6:41 
GeneralProcess Status Pin
Phil.Benson2-Jul-02 2:51
professionalPhil.Benson2-Jul-02 2:51 
GeneralRe: Process Status Pin
Scott H. Settlemier2-Jul-02 3:10
Scott H. Settlemier2-Jul-02 3:10 
GeneralRe: Process Status Pin
#realJSOP2-Jul-02 3:14
professional#realJSOP2-Jul-02 3:14 
GeneralRe: Process Status Pin
Phil.Benson2-Jul-02 3:22
professionalPhil.Benson2-Jul-02 3:22 
Generaluser selects text printed by drawtext Pin
2-Jul-02 2:50
suss2-Jul-02 2:50 
GeneralRe: user selects text printed by drawtext Pin
Chris Losinger2-Jul-02 3:16
professionalChris Losinger2-Jul-02 3:16 
GeneralRe: user selects text printed by drawtext Pin
#realJSOP2-Jul-02 5:22
professional#realJSOP2-Jul-02 5:22 
QuestionHow can I make my app to use less memory Pin
Ola Carlsson2-Jul-02 2:18
Ola Carlsson2-Jul-02 2:18 

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.