Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: how to get window color? PingroupVCProgrammer18-Jan-13 19:42 
QuestionHow to draw a banner and button ? PingroupVCProgrammer15-Jan-13 21:24 
AnswerRe: How to draw a banner and button ? PinmemberFlaviu215-Jan-13 21:49 
GeneralRe: How to draw a banner and button ? PingroupVCProgrammer15-Jan-13 22:08 
GeneralRe: How to draw a banner and button ? PinmemberFlaviu215-Jan-13 22:26 
GeneralRe: How to draw a banner and button ? PingroupVCProgrammer15-Jan-13 22:34 
GeneralRe: How to draw a banner and button ? [modified] PinmemberFlaviu215-Jan-13 23:14 
AnswerRe: How to draw a banner and button ? PinmvpRichard MacCutchan15-Jan-13 23:46 
Questionit's my first useful code.. and there's error that i can't understan :( Pinmembereng.immortal15-Jan-13 19:20 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( PinmemberFlaviu215-Jan-13 20:37 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pinmember«_Superman_»15-Jan-13 23:06 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( PinmemberDavidCrow16-Jan-13 6:52 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( PinmemberDean M. Sands, III17-Jan-13 4:11 
Questioncallback function gets called / executed with bad data PinmemberVaclav_Sal15-Jan-13 10:46 
In case I have asked this before,   but OF does not remember, accept my apology.
I believe this is pretty generic situation so I ll try to explain it without code.
I have VFW capAPI which registers a callback function and than initializes the callback rate.
The callback function allows me to modify the data before it is displayed.
I have not figured out how this display really works, but it does, non issue for now.
The callback rate is adjustable in milliseconds, and if I set it to 20 and let the callback function just   return, without modifying the data, in debug mode,   the display goes from good bitmap to blank pretty rapidly.
If I set the rate to 2 seconds there still are occasional blank screens.
I was under the impression that callbacks are executed by the system when data became available, but it seem that in VFW API the rate executes the callback even with no or bad data.
I did check that and one of the parameters in the callback – number of bytes actually used _ is “a lot less” than when true number of bytes used.
So even if I check for “blanks / invalid “ data I will still have problem unless I can keep track of good data and substitute them for bad ones.
I   am just posting this in case someone has an experience with this behavior.
This seems to be a major issue in VFW , but replacing VFW with DirectX is not an option.
I would also like to know how to access the callback function return value.
The function is defined as global. Do I need to make it static class function to be able to use the return value?
Is it also possible that I am missing some “buffers”? I recall having a great time using another AVI. Maybe I need to shrink my bitmap.
 
Thanks for your time, appreciate it.
 
Cheers Vaclav
QuestionDoes anyone know this c plus plus knowledge? Pingroupyu-jian15-Jan-13 6:16 
AnswerRe: Does anyone know this c plus plus knowledge? PinmvpRichard MacCutchan15-Jan-13 7:33 
AnswerRe: Does anyone know this c plus plus knowledge? PinmvpCPallini15-Jan-13 12:30 
GeneralRe: Does anyone know this c plus plus knowledge? Pingroupyu-jian16-Jan-13 4:17 
GeneralRe: Does anyone know this c plus plus knowledge? PinmvpCPallini16-Jan-13 5:04 
GeneralRe: Does anyone know this c plus plus knowledge? Pingroupyu-jian16-Jan-13 18:44 
GeneralRe: Does anyone know this c plus plus knowledge? Pinmemberjschell16-Jan-13 10:10 
AnswerRe: Does anyone know this c plus plus knowledge? [modified] PinmemberJackDingler16-Jan-13 12:19 
GeneralRe: Does anyone know this c plus plus knowledge? Pingroupyu-jian16-Jan-13 18:50 
GeneralRe: Does anyone know this c plus plus knowledge? PinmemberJackDingler17-Jan-13 6:15 
Questiondeque problem. Does this code has any problem? [solved] [modified] Pingroupyu-jian14-Jan-13 4:47 
AnswerRe: deque problem. Does this code has any problem? PinmvpCPallini14-Jan-13 7:59 
GeneralRe: deque problem. Does this code has any problem? Pingroupyu-jian14-Jan-13 14:50 
GeneralRe: deque problem. Does this code has any problem? Pingroupyu-jian14-Jan-13 17:02 
QuestionCDC Problem with coordinates PinmemberArgonia14-Jan-13 2:50 
AnswerRe: CDC Problem with coordinates PinmemberArgonia14-Jan-13 22:39 
GeneralRe: CDC Problem with coordinates PinmemberVaclav_Sal15-Jan-13 10:53 
GeneralRe: CDC Problem with coordinates PinmemberArgonia15-Jan-13 22:23 
QuestionDhcpRequestParams() PinmemberMan in the mirror13-Jan-13 20:46 
AnswerRe: DhcpRequestParams() PinmvpRichard MacCutchan13-Jan-13 23:11 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus [modified] PinmemberVaclav_Sal13-Jan-13 6:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmvpRichard MacCutchan13-Jan-13 6:44 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmemberVaclav_Sal13-Jan-13 7:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmvpRichard MacCutchan13-Jan-13 7:32 
QuestionHow to get detail error info from E_FAIL? PinmemberFalconapollo11-Jan-13 22:23 
AnswerRe: How to get detail error info from E_FAIL? Pinmember«_Superman_»12-Jan-13 0:43 
GeneralRe: How to get detail error info from E_FAIL? PinmemberFalconapollo12-Jan-13 1:00 
GeneralRe: How to get detail error info from E_FAIL? PinmemberJochen Arndt13-Jan-13 22:05 
AnswerRe: How to get detail error info from E_FAIL? PinmemberArgonia14-Jan-13 3:01 
QuestionVideo Capture using DirectShow only works for first time.? Pinmembermbatra3110-Jan-13 21:25 
AnswerRe: Video Capture using DirectShow only works for first time.? Pingroup_AnsHUMAN_ 11-Jan-13 3:05 
AnswerRe: Video Capture using DirectShow only works for first time.? PinmemberVaclav_Sal14-Jan-13 17:10 
Questionhow to unsigned int64 to two unsigned int32 values Pinmembervishalgpt9-Jan-13 23:22 
AnswerRe: how to unsigned int64 to two unsigned int32 values PinmemberJochen Arndt10-Jan-13 0:06 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt10-Jan-13 0:32 
GeneralRe: how to unsigned int64 to two unsigned int32 values PinmemberJochen Arndt10-Jan-13 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 27 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid