Click here to Skip to main content
11,721,385 members (86,005 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 Sergey Alexandrovich Kryukov 510
1 OriginalGriff 249
2 Mika Wendelius 170
3 F-ES Sitecore 80
4 cyycoish 70
0 Sergey Alexandrovich Kryukov 2,209
1 OriginalGriff 969
2 F-ES Sitecore 660
3 Maciej Los 609
4 Richard MacCutchan 560

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