Click here to Skip to main content
11,928,740 members (52,153 online)
Rate this:
Please Sign up or sign in to vote.
See more: VC6 C++ 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 15-Jul-12 4:47am
thank you ! so how to display the data of its frame buffer on a DC ?
barneyman 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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.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