Click here to Skip to main content
11,410,529 members (57,182 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 23: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 Sergey Alexandrovich Kryukov 8,755
1 OriginalGriff 6,915
2 Maciej Los 3,390
3 Abhinav S 3,248
4 Peter Leow 3,059

Advertise | Privacy | Mobile
Web04 | 2.8.150414.5 | 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