Click here to Skip to main content
15,913,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing an SDI application Pin
Zac Howland3-Jul-06 3:38
Zac Howland3-Jul-06 3:38 
QuestionRemote Software Update Pin
softwaremonkey30-Jun-06 5:29
softwaremonkey30-Jun-06 5:29 
AnswerRe: Remote Software Update Pin
David Crow30-Jun-06 6:21
David Crow30-Jun-06 6:21 
QuestionCustom Objects Accessible by Many Forms Pin
kialmur30-Jun-06 5:18
kialmur30-Jun-06 5:18 
AnswerRe: Custom Objects Accessible by Many Forms [modified] Pin
led mike30-Jun-06 5:24
led mike30-Jun-06 5:24 
AnswerRe: Custom Objects Accessible by Many Forms Pin
Zac Howland30-Jun-06 5:29
Zac Howland30-Jun-06 5:29 
GeneralRe: Custom Objects Accessible by Many Forms Pin
kialmur30-Jun-06 6:03
kialmur30-Jun-06 6:03 
GeneralRe: Custom Objects Accessible by Many Forms Pin
led mike30-Jun-06 6:16
led mike30-Jun-06 6:16 
kialmur wrote:
To answer the post of the next person, I have already separated my application based on the Model-View-Controller pattern. I simply do not know how to give access to the object to each form, since each form is a class.


So each form is a "view" in the design and uses the "controler" to send messages into the other isolated objects in the design.

kialmur wrote:
So I need to both write and read from the object within both layers of forms.


Well not directly that is why you have the MVC design. The forms don't know about the object just the controller and events. So the forms call methods of the controller which results in the "write" operations. Some other object(s) should be performing the "read" operations which then results in an "event" that the forms can subscribe to. The event can contain the data directly or the data can be sent into the "model" in the design at "read" time and then when the form event handler fires it can access the data through the "model" object.

Does that help?

GeneralRe: Custom Objects Accessible by Many Forms Pin
kialmur30-Jun-06 6:29
kialmur30-Jun-06 6:29 
GeneralRe: Custom Objects Accessible by Many Forms Pin
led mike30-Jun-06 6:39
led mike30-Jun-06 6:39 
GeneralRe: Custom Objects Accessible by Many Forms Pin
kialmur30-Jun-06 6:50
kialmur30-Jun-06 6:50 
GeneralRe: Custom Objects Accessible by Many Forms Pin
Zac Howland30-Jun-06 6:45
Zac Howland30-Jun-06 6:45 
AnswerRe: Custom Objects Accessible by Many Forms Pin
led mike30-Jun-06 5:30
led mike30-Jun-06 5:30 
QuestionSave button and encryption Pin
we3Guy30-Jun-06 4:58
we3Guy30-Jun-06 4:58 
AnswerRe: Save button and encryption Pin
led mike30-Jun-06 5:25
led mike30-Jun-06 5:25 
AnswerRe: Save button and encryption Pin
bob1697230-Jun-06 5:26
bob1697230-Jun-06 5:26 
QuestionDetecting that a network cable has been plugged in... Pin
LostInABQ30-Jun-06 4:50
LostInABQ30-Jun-06 4:50 
QuestionRe: Detecting that a network cable has been plugged in... Pin
David Crow30-Jun-06 5:02
David Crow30-Jun-06 5:02 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Eric Dahlvang30-Jun-06 6:12
Eric Dahlvang30-Jun-06 6:12 
QuestionRe: Detecting that a network cable has been plugged in... Pin
David Crow30-Jun-06 6:19
David Crow30-Jun-06 6:19 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Randor 30-Jun-06 7:39
professional Randor 30-Jun-06 7:39 
GeneralRe: Detecting that a network cable has been plugged in... Pin
David Crow30-Jun-06 9:29
David Crow30-Jun-06 9:29 
GeneralRe: Detecting that a network cable has been plugged in... Pin
Randor 30-Jun-06 13:55
professional Randor 30-Jun-06 13:55 
QuestionRe: Detecting that a network cable has been plugged in... Pin
David Crow5-Jul-06 2:48
David Crow5-Jul-06 2:48 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Eric Dahlvang30-Jun-06 10:47
Eric Dahlvang30-Jun-06 10:47 

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.