Click here to Skip to main content
12,956,173 members (104,737 online)

C / C++ / MFC

 
GeneralRe: How to draw a banner and button ? Pin
Flaviu215-Jan-13 22:14
memberFlaviu215-Jan-13 22:14 
AnswerRe: How to draw a banner and button ? Pin
Richard MacCutchan15-Jan-13 22:46
mvpRichard 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
membereng.immortal15-Jan-13 18:20 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
Flaviu215-Jan-13 19:37
memberFlaviu215-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
member«_Superman_»15-Jan-13 22:06 
AnswerRe: it's my first useful code.. and there's error that i can't understan :( Pin
DavidCrow16-Jan-13 5:52
memberDavidCrow16-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
memberDean M. Sands, III17-Jan-13 3:11 
Questioncallback function gets called / executed with bad data Pin
Vaclav_Sal15-Jan-13 9:46
memberVaclav_Sal15-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
groupyu-jian15-Jan-13 5:16 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
Richard MacCutchan15-Jan-13 6:33
mvpRichard MacCutchan15-Jan-13 6:33 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
CPallini15-Jan-13 11:30
mvpCPallini15-Jan-13 11:30 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 3:17
groupyu-jian16-Jan-13 3:17 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
CPallini16-Jan-13 4:04
mvpCPallini16-Jan-13 4:04 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 17:44
groupyu-jian16-Jan-13 17:44 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
jschell16-Jan-13 9:10
memberjschell16-Jan-13 9:10 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
JackDingler16-Jan-13 11:19
memberJackDingler16-Jan-13 11:19 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 17:50
groupyu-jian16-Jan-13 17:50 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
JackDingler17-Jan-13 5:15
memberJackDingler17-Jan-13 5:15 
Questiondeque problem. Does this code has any problem? [solved] Pin
yu-jian14-Jan-13 3:47
groupyu-jian14-Jan-13 3:47 
AnswerRe: deque problem. Does this code has any problem? Pin
CPallini14-Jan-13 6:59
mvpCPallini14-Jan-13 6:59 
GeneralRe: deque problem. Does this code has any problem? Pin
yu-jian14-Jan-13 13:50
groupyu-jian14-Jan-13 13:50 
GeneralRe: deque problem. Does this code has any problem? Pin
yu-jian14-Jan-13 16:02
groupyu-jian14-Jan-13 16:02 
QuestionCDC Problem with coordinates Pin
Argonia14-Jan-13 1:50
memberArgonia14-Jan-13 1:50 
AnswerRe: CDC Problem with coordinates Pin
Argonia14-Jan-13 21:39
memberArgonia14-Jan-13 21:39 
GeneralRe: CDC Problem with coordinates Pin
Vaclav_Sal15-Jan-13 9:53
memberVaclav_Sal15-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.


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 29 May 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid