Click here to Skip to main content
15,868,340 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to draw a banner and button ? Pin
_Flaviu15-Jan-13 22:14
_Flaviu15-Jan-13 22:14 
AnswerRe: How to draw a banner and button ? Pin
Richard MacCutchan15-Jan-13 22:46
mveRichard MacCutchan15-Jan-13 22:46 
Questionit's my first useful code.. and there's error that i can't understan :( Pin
eng.immortal15-Jan-13 18:20
eng.immortal15-Jan-13 18:20 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
_Flaviu15-Jan-13 19:37
_Flaviu15-Jan-13 19:37 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
«_Superman_»15-Jan-13 22:06
professional«_Superman_»15-Jan-13 22:06 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
David Crow16-Jan-13 5:52
David Crow16-Jan-13 5:52 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
Dean M. Sands, III17-Jan-13 3:11
Dean M. Sands, III17-Jan-13 3:11 
Questioncallback function gets called / executed with bad data Pin
Vaclav_15-Jan-13 9:46
Vaclav_15-Jan-13 9: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? Pin
yu-jian15-Jan-13 5:16
yu-jian15-Jan-13 5:16 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
Richard MacCutchan15-Jan-13 6:33
mveRichard MacCutchan15-Jan-13 6:33 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
CPallini15-Jan-13 11:30
mveCPallini15-Jan-13 11:30 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 3:17
yu-jian16-Jan-13 3:17 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
CPallini16-Jan-13 4:04
mveCPallini16-Jan-13 4:04 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 17:44
yu-jian16-Jan-13 17:44 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
jschell16-Jan-13 9:10
jschell16-Jan-13 9:10 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
JackDingler16-Jan-13 11:19
JackDingler16-Jan-13 11:19 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 17:50
yu-jian16-Jan-13 17:50 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
JackDingler17-Jan-13 5:15
JackDingler17-Jan-13 5:15 
Questiondeque problem. Does this code has any problem? [solved] Pin
yu-jian14-Jan-13 3:47
yu-jian14-Jan-13 3:47 
AnswerRe: deque problem. Does this code has any problem? Pin
CPallini14-Jan-13 6:59
mveCPallini14-Jan-13 6:59 
GeneralRe: deque problem. Does this code has any problem? Pin
yu-jian14-Jan-13 13:50
yu-jian14-Jan-13 13:50 
GeneralRe: deque problem. Does this code has any problem? Pin
yu-jian14-Jan-13 16:02
yu-jian14-Jan-13 16:02 
QuestionCDC Problem with coordinates Pin
Argonia14-Jan-13 1:50
professionalArgonia14-Jan-13 1:50 
AnswerRe: CDC Problem with coordinates Pin
Argonia14-Jan-13 21:39
professionalArgonia14-Jan-13 21:39 
GeneralRe: CDC Problem with coordinates Pin
Vaclav_15-Jan-13 9:53
Vaclav_15-Jan-13 9:53 

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.