Click here to Skip to main content
11,789,512 members (51,225 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VC6 Win32
hello , everybody ! I've got a problem on using the VFW . It provides the callback function to deal with the frame captured by the carmera , the callback function has two parameters.
Its Function prototype :
but I don't know how to use the second parameter lpVHdr , I want to display the Frame info on a DC , somebody help me , thanks !
Posted 14-Jul-12 22:14pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

the second parameter is a long pointer (LP) to a VIDEOHDR[^] struct


if(lpVHdr->dwFlags & VHDR_KEYFRAME)
// it's a keyframe!
Younth at 15-Jul-12 4:47am
thank you ! so how to display the data of its frame buffer on a DC ?
barneyman at 15-Jul-12 6:05am
no idea :) example here says it's just a BMP

VFW is ancient technology - you might want to look at DirectShow
Younth at 17-Jul-12 8:17am
I searched a lot ,someone said it's a no-format data of DIBS , parts info of bitmap ,but I don't know how to deal with it , could you please give me some code example ?
barneyman at 17-Jul-12 20:05pm
the 5th item on that thread i pointed you at shows you how ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 954
1 Maciej Los 765
2 KrunalRohit 666
3 CPallini 606
4 Richard MacCutchan 420

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.1 | Last Updated 15 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100