Click here to Skip to main content
15,891,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to retrieve Public IP Address Pin
gamefreak22919-Jul-09 5:09
gamefreak22919-Jul-09 5:09 
Questioncant make it stop, problem with small c++ code Pin
rambache8-Jul-09 8:50
rambache8-Jul-09 8:50 
AnswerRe: cant make it stop, problem with small c++ code Pin
josda10008-Jul-09 9:01
josda10008-Jul-09 9:01 
AnswerRe: cant make it stop, problem with small c++ code Pin
gamefreak22918-Jul-09 9:03
gamefreak22918-Jul-09 9:03 
GeneralRe: cant make it stop, problem with small c++ code Pin
josda10008-Jul-09 9:04
josda10008-Jul-09 9:04 
GeneralRe: cant make it stop, problem with small c++ code Pin
josda10008-Jul-09 9:03
josda10008-Jul-09 9:03 
GeneralRe: cant make it stop, problem with small c++ code Pin
gamefreak22918-Jul-09 9:12
gamefreak22918-Jul-09 9:12 
QuestionUnderstanding SDI Document/View Linkage - #$@%$%%^$%^% Pin
CodeMacDaddy8-Jul-09 8:47
CodeMacDaddy8-Jul-09 8:47 
I have created an SDI app with view/document architecture. Reviewing many books on this concept, I understanding there is linkage with pointers between the following:

1) Application Object to Document Template
2) Document Template to Document Object
3) Document Template to FrameWindow
4) Document Object to View Object
5) View Object to Document Object
5) Frame Window to View Object

Yes, nice concepts but how do I use these pointer, no good "real examples".
4 books later and I am still ripping my hair out. Can someone show some code snippets on how I would initialize the pointers and use these pointers.

For example in my app I have some data coming from a comm port, using a 3rd party C++ lib, a function is called when a new comm msg arrived. I would like to store this data in the Document object which would then call a Document Object method that would execute CDocument::UpdateAllViews to notify the View to get the new data from the CDocument object and update the displayed screen. How can I directly call a CDocument method that I add to my project, i.e from the function that is called with the new comm msg arrives ? My other thought is to post a message to the CDocument object which would trigger the view updating. I understand the concept of this view/document architecture just need some help in "real code" snippets. If I could just get past this concept.

Cry | :((
Questionlib file keeps fully recompiling even when no changes have been made Pin
KellyR8-Jul-09 7:32
KellyR8-Jul-09 7:32 
AnswerRe: lib file keeps fully recompiling even when no changes have been made Pin
Stuart Dootson8-Jul-09 9:40
professionalStuart Dootson8-Jul-09 9:40 
AnswerRe: lib file keeps fully recompiling even when no changes have been made Pin
KellyR9-Jul-09 3:14
KellyR9-Jul-09 3:14 
AnswerRe: lib file keeps fully recompiling even when no changes have been made Pin
Alan Balkany8-Jul-09 11:21
Alan Balkany8-Jul-09 11:21 
Question[Message Deleted] Pin
vidya5568-Jul-09 7:10
vidya5568-Jul-09 7:10 
AnswerRe: Memory Manager Pin
David Crow8-Jul-09 7:15
David Crow8-Jul-09 7:15 
AnswerRe: Memory Manager Pin
Stuart Dootson8-Jul-09 7:17
professionalStuart Dootson8-Jul-09 7:17 
AnswerRe: Memory Manager Pin
Michael Schubert8-Jul-09 7:22
Michael Schubert8-Jul-09 7:22 
General[Message Deleted] Pin
vidya5568-Jul-09 7:37
vidya5568-Jul-09 7:37 
GeneralRe: Memory Manager Pin
molesworth8-Jul-09 9:37
molesworth8-Jul-09 9:37 
GeneralRe: Memory Manager Pin
vidya5568-Jul-09 11:07
vidya5568-Jul-09 11:07 
GeneralRe: Memory Manager Pin
molesworth8-Jul-09 13:59
molesworth8-Jul-09 13:59 
GeneralRe: Memory Manager Pin
Rajesh R Subramanian8-Jul-09 22:17
professionalRajesh R Subramanian8-Jul-09 22:17 
AnswerRe: Memory Manager Pin
harold aptroot8-Jul-09 8:12
harold aptroot8-Jul-09 8:12 
Questioninline or macro Pin
Be programmer8-Jul-09 6:36
Be programmer8-Jul-09 6:36 
AnswerRe: inline or macro Pin
Michael Schubert8-Jul-09 6:46
Michael Schubert8-Jul-09 6:46 
GeneralRe: inline or macro Pin
George L. Jackson8-Jul-09 6:59
George L. Jackson8-Jul-09 6:59 

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.