Click here to Skip to main content
16,019,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClass definition - addendum Pin
Vaclav_15-Mar-10 12:16
Vaclav_15-Mar-10 12:16 
GeneralRe: Class definition - addendum Pin
Eugen Podsypalnikov15-Mar-10 20:42
Eugen Podsypalnikov15-Mar-10 20:42 
GeneralRe: Class definition - addendum Pin
Vaclav_16-Mar-10 4:31
Vaclav_16-Mar-10 4:31 
GeneralRe: Class definition - addendum [modified] Pin
Eugen Podsypalnikov16-Mar-10 4:36
Eugen Podsypalnikov16-Mar-10 4:36 
GeneralRe: Class definition - addendum Pin
Avi Berger16-Mar-10 7:15
Avi Berger16-Mar-10 7:15 
AnswerRe: Accessing a application defined DLL from sibling DLL gets no contructor available error C2512 (VC6.0). Pin
Avi Berger15-Mar-10 16:16
Avi Berger15-Mar-10 16:16 
GeneralRe: Accessing a application defined DLL from sibling DLL gets no contructor available error C2512 (VC6.0). Pin
Vaclav_15-Mar-10 17:12
Vaclav_15-Mar-10 17:12 
GeneralRe: Accessing a application defined DLL from sibling DLL gets no contructor available error C2512 (VC6.0). Pin
Avi Berger16-Mar-10 7:00
Avi Berger16-Mar-10 7:00 
You're welcome. Thank you for that link in your post to Eugen Podsypalnikov. I didn't know about that possibility.

Vaclav_Sal wrote:
They are both “connected” to the document anyway and need to communicate only with the document.


Sounds good to me. Being somewhat simple minded Wink | ;) , I prefer to keep things as simple and straightforward as possible. Keep in mind that you will also have to maintain what you create. I've found that locating a problem when data flow is passing between 8 components, as it does in some software I get to maintain, can sometimes be interesting.

Another approach you might consider if you have to notify other windows of some action, but the document's UpdateAllViews() isn't appropriate, is to play "chain of command". Implement a custom message that is sent to the parent window for handling or rebroadcast to siblings of the originator. I've done this with mix-in classes for splitter windows to keep the panes in sync. This has let me reuse views on different tab pages with different - or no - siblings.

Oh, I just noticed your reference to VC++ version 6. Are you aware that the dialect of C++ used in 6.0 is non-standard? You might want to consider shifting your development to a later version that is more standard conforming.

Good luck.
Please do not read this signature.

QuestionFile Type Extensions Pin
maycockt15-Mar-10 6:46
maycockt15-Mar-10 6:46 
QuestionRe: File Type Extensions Pin
David Crow15-Mar-10 7:55
David Crow15-Mar-10 7:55 
AnswerRe: File Type Extensions Pin
maycockt16-Mar-10 3:45
maycockt16-Mar-10 3:45 
QuestionRe: File Type Extensions Pin
David Crow16-Mar-10 3:49
David Crow16-Mar-10 3:49 
AnswerRe: File Type Extensions Pin
ThatsAlok16-Mar-10 0:40
ThatsAlok16-Mar-10 0:40 
AnswerRe: File Type Extensions Pin
maycockt16-Mar-10 4:06
maycockt16-Mar-10 4:06 
AnswerRe: File Type Extensions Pin
Avi Berger16-Mar-10 5:13
Avi Berger16-Mar-10 5:13 
Questionhow to read data from wav file and use of fft Pin
arvindrawat11115-Mar-10 4:43
arvindrawat11115-Mar-10 4:43 
AnswerRe: how to read data from wav file and use of fft Pin
CPallini15-Mar-10 8:11
mveCPallini15-Mar-10 8:11 
QuestionHow to add blank spaces in line while file writing? Pin
Abhijit D. Babar15-Mar-10 3:25
Abhijit D. Babar15-Mar-10 3:25 
AnswerRe: How to add blank spaces in line while file writing? Pin
Richard MacCutchan15-Mar-10 3:50
mveRichard MacCutchan15-Mar-10 3:50 
AnswerRe: How to add blank spaces in line while file writing? Pin
Rajesh R Subramanian15-Mar-10 4:09
professionalRajesh R Subramanian15-Mar-10 4:09 
AnswerRe: How to add blank spaces in line while file writing? Pin
LouisLewis15-Mar-10 11:32
LouisLewis15-Mar-10 11:32 
QuestionSending KeyStroke Pin
S p k 52115-Mar-10 1:21
S p k 52115-Mar-10 1:21 
AnswerRe: Sending KeyStroke Pin
ThatsAlok15-Mar-10 1:53
ThatsAlok15-Mar-10 1:53 
AnswerRe: Sending KeyStroke Pin
Rajesh R Subramanian15-Mar-10 2:05
professionalRajesh R Subramanian15-Mar-10 2:05 
QuestionRe: Sending KeyStroke Pin
David Crow15-Mar-10 6:05
David Crow15-Mar-10 6:05 

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.