I have given up on integrating MFC with VFW and embarking on usage of DirectX to collect data from USB video cameras.
I have found other sample code ( using MFC and VFW) and it behaves exactly the same way as my attempt to make it work.
I suspect that the issue is with my current ( and latest XP ) driver.
Besides getting used to confusing terminology – DirectX, DirectShow I have run into my first problem while using the sample code posted elsewhere here.
There seems to be MS specific and also VS release specific header sal.h ( or later sal2.h).
I have downloaded latest Windows SDK and this file is not there.
The “problem“ I am facing is that the file / header is defined in several VS versions, but than it also depended on other headers, as usual.
<b>I guess my silly question is – can these language additions , such as sal.h, by MS be downloaded individually from reputable source and not as a part of say VS 2010? </b>
The MS description lacks the “download from here” options.
As “painful” as it is I have no issue with creating my own headers dependencies.
Any reasonable advise will be as always appreciated.
As a side note, I would just say that you are making the right decision. VFW is a dead end these days and DirectShow is a better option. Microsoft Media Foundation[^] is actually the next generation, replacing DirectShow. It requires Windows Vista or newer, so if you have requirements that includes using Windows XP, don't go down that route yet .
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
thanks for the note. I have been hearing this “dead VFW” since I first started asking about it.
My “standard” reply - “popular” OpenCV is based on VFW! The “problem” is that people are just cutting and pasting all of the VFW sample codes (posted here and elsewhere) and NOBODY really knows how it works as a real event driven Windows API! You can always find a”timer” or infinite “loop” somewhere in these samples – including in OpenCV basic code sample.
As soon as I get this “sal.h” in, I am off and running!
PS My last name is Sal!
PS How may developers are "building " for Vista? or ME? I'll wait for Windows 10.
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-17 12:06