Click here to Skip to main content
12,399,975 members (46,693 online)

C / C++ / MFC

 
GeneralRe: how to get window color? Pin
VCProgrammer18-Jan-13 18:42
groupVCProgrammer18-Jan-13 18:42 
QuestionHow to draw a banner and button ? Pin
VCProgrammer15-Jan-13 20:24
groupVCProgrammer15-Jan-13 20:24 
AnswerRe: How to draw a banner and button ? Pin
Flaviu215-Jan-13 20:49
memberFlaviu215-Jan-13 20:49 
GeneralRe: How to draw a banner and button ? Pin
VCProgrammer15-Jan-13 21:08
groupVCProgrammer15-Jan-13 21:08 
GeneralRe: How to draw a banner and button ? Pin
Flaviu215-Jan-13 21:26
memberFlaviu215-Jan-13 21:26 
GeneralRe: How to draw a banner and button ? Pin
VCProgrammer15-Jan-13 21:34
groupVCProgrammer15-Jan-13 21:34 
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 
GeneralRe: CDC Problem with coordinates Pin
Argonia15-Jan-13 21:23
memberArgonia15-Jan-13 21:23 
QuestionDhcpRequestParams() Pin
Man in the mirror13-Jan-13 19:46
memberMan in the mirror13-Jan-13 19:46 
AnswerRe: DhcpRequestParams() Pin
Richard MacCutchan13-Jan-13 22:11
mvpRichard MacCutchan13-Jan-13 22:11 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_Sal13-Jan-13 5:30
memberVaclav_Sal13-Jan-13 5:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 5:44
mvpRichard MacCutchan13-Jan-13 5:44 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_Sal13-Jan-13 6:08
memberVaclav_Sal13-Jan-13 6:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 6:32
mvpRichard MacCutchan13-Jan-13 6:32 
QuestionHow to get detail error info from E_FAIL? Pin
Falconapollo11-Jan-13 21:23
memberFalconapollo11-Jan-13 21:23 
AnswerRe: How to get detail error info from E_FAIL? Pin
«_Superman_»11-Jan-13 23:43
member«_Superman_»11-Jan-13 23:43 
GeneralRe: How to get detail error info from E_FAIL? Pin
Falconapollo12-Jan-13 0:00
memberFalconapollo12-Jan-13 0:00 
GeneralRe: How to get detail error info from E_FAIL? Pin
Jochen Arndt13-Jan-13 21:05
memberJochen Arndt13-Jan-13 21:05 
AnswerRe: How to get detail error info from E_FAIL? Pin
Argonia14-Jan-13 2:01
memberArgonia14-Jan-13 2:01 
QuestionVideo Capture using DirectShow only works for first time.? Pin
mbatra3110-Jan-13 20:25
membermbatra3110-Jan-13 20:25 
AnswerRe: Video Capture using DirectShow only works for first time.? Pin
_AnsHUMAN_ 11-Jan-13 2:05
group_AnsHUMAN_ 11-Jan-13 2:05 
AnswerRe: Video Capture using DirectShow only works for first time.? Pin
Vaclav_Sal14-Jan-13 16:10
memberVaclav_Sal14-Jan-13 16:10 
Questionhow to unsigned int64 to two unsigned int32 values Pin
vishalgpt9-Jan-13 22:22
membervishalgpt9-Jan-13 22:22 
AnswerRe: how to unsigned int64 to two unsigned int32 values Pin
Jochen Arndt9-Jan-13 23:06
memberJochen Arndt9-Jan-13 23:06 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
vishalgpt9-Jan-13 23:32
membervishalgpt9-Jan-13 23:32 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
Jochen Arndt9-Jan-13 23:58
memberJochen Arndt9-Jan-13 23:58 

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.160721.1 | Last Updated 26 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid