Click here to Skip to main content
15,919,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
If this is confusing, please just read my summary. Thats what my ultimate goal is:


I am trying to communicate information received in a View (which is associated with doc1) to Doc2 so it can update View2.

First question is that if I put a button on my view and in the click event try to set the doc2 public variable directly (like Doc2::var = abc), it says that its illegal to access a data member from a static variable.

So I put a setvariable() function in doc1, and tried to create an object of type doc1 in view2 to set the variable (which I dont think is going to do what I want because of the way the document is created from the template). Anyways turns out that doc1() constructor is protected in order to use the dyn_create stuff.

I suppose making the classes friends might allow me access, but the view (view1) I eventually want to use to display info from view2, is created from a template so it wont be communicated to by the simple doc1 object that I am trying to make.

Summary:

I call a dll in view2, and want to give the info received in view2, to be seen in view1. THis I realize has to be done via doc1, but I am not able to figure out how to transmit this info to doc1.


Additional question: In response to a button click on view2, if I can successfully change the value of a variable in doc1, how do I updateallviews()? I dont want to click a ,menu item in doc1 to update all views. rather I want it done automatically as soon as the variable value changes.
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 
AnswerRe: How can I make my app to use less memory Pin
#realJSOP2-Jul-02 3:22
professional#realJSOP2-Jul-02 3:22 
GeneralRe: How can I make my app to use less memory Pin
Mike Nordell2-Jul-02 8:10
Mike Nordell2-Jul-02 8:10 
AnswerRe: How can I make my app to use less memory Pin
Mike Nordell2-Jul-02 6:38
Mike Nordell2-Jul-02 6:38 
QuestionHow can I read from Serial Port? Pin
2-Jul-02 1:21
suss2-Jul-02 1:21 

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.