Click here to Skip to main content
15,889,346 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 9:02
ForNow10-Jun-12 9:02 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 9:08
ForNow10-Jun-12 9:08 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
Richard MacCutchan10-Jun-12 22:01
mveRichard MacCutchan10-Jun-12 22:01 
AnswerRe: What CWinThread is pointed to by AfxGetApp Pin
Erudite_Eric10-Jun-12 9:15
Erudite_Eric10-Jun-12 9:15 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 18:26
ForNow10-Jun-12 18:26 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
Erudite_Eric11-Jun-12 0:58
Erudite_Eric11-Jun-12 0:58 
AnswerRe: What CWinThread is pointed to by AfxGetApp Pin
Aescleal10-Jun-12 13:11
Aescleal10-Jun-12 13:11 
QuestionCallback (capAVI) and MFC doc/view Pin
Vaclav_10-Jun-12 6:17
Vaclav_10-Jun-12 6:17 
I need some hint how to do this.
Most capAVI examples of callback let the callback function process the data.
I have static splitter with four views of the document and one of them does the callback stuff – semi real time video capture.
I need to “send” the video data from the callback function to the document so I can do processing and updating of the remaining views accordingly.

I though that I could just instantiate another view, but it would have to be in the initial templates to have access to the document. Little kludgy, but doable.
Ideally I would like to let view which runs the callback to send the data to the document, but I do not know how to do it.
I also do not have a clue how to access the callback return value.
Maybe that would work if I can return the data.
I am pretty much stuck.
Any help would be as always appreciated.
Thanks Vaclav

PS This is plain MFC doc/view in VC++ 6.0 ancient stuff, peppered with OpenCV and capAVI.

Addendum
I found this here and I think it will get me started
Callbacks, Threads, and MFC

-- modified 10-Jun-12 12:38pm.
QuestionExample of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
likescr79-Jun-12 19:41
likescr79-Jun-12 19:41 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Richard MacCutchan9-Jun-12 22:17
mveRichard MacCutchan9-Jun-12 22:17 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Aescleal9-Jun-12 22:22
Aescleal9-Jun-12 22:22 
GeneralRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
likescr713-Jun-12 3:27
likescr713-Jun-12 3:27 
QuestionRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
CPallini10-Jun-12 21:06
mveCPallini10-Jun-12 21:06 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Eytukan11-Jun-12 4:42
Eytukan11-Jun-12 4:42 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Eytukan11-Jun-12 4:44
Eytukan11-Jun-12 4:44 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
jschell11-Jun-12 8:02
jschell11-Jun-12 8:02 
QuestionData Encapsulation Pin
pix_programmer8-Jun-12 21:12
pix_programmer8-Jun-12 21:12 
AnswerRe: Data Encapsulation Pin
Richard MacCutchan8-Jun-12 22:07
mveRichard MacCutchan8-Jun-12 22:07 
AnswerRe: Data Encapsulation Pin
Aescleal9-Jun-12 9:40
Aescleal9-Jun-12 9:40 
QuestionMy assignment aggregation, composition and inheritance Pin
David96378-Jun-12 19:23
David96378-Jun-12 19:23 
AnswerRe: My assignment aggregation, composition and inheritance Pin
Richard MacCutchan8-Jun-12 22:02
mveRichard MacCutchan8-Jun-12 22:02 
GeneralRe: My assignment aggregation, composition and inheritance Pin
David96379-Jun-12 0:13
David96379-Jun-12 0:13 
GeneralRe: My assignment aggregation, composition and inheritance Pin
Richard MacCutchan9-Jun-12 0:20
mveRichard MacCutchan9-Jun-12 0:20 
AnswerRe: My assignment aggregation, composition and inheritance Pin
Aescleal9-Jun-12 10:09
Aescleal9-Jun-12 10:09 
QuestionBuild error with Visual C++ 2010 Pin
Falconapollo8-Jun-12 17:10
Falconapollo8-Jun-12 17:10 

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.