
Welcome to CAVICapWnd, An MFC class to encapsulate
the Video For Windows API.
Features
- The class provides a familiar MFC interface to
the VFW API. The class derives from CWnd and translates the message based VFW
API into standard C++ methods.
- All code compiles cleanly at
level 4 and is UNICODE enabled.
The enclosed zip file contains
the CAVICapWnd source code, documentation and a simple MFC SDI
app which implements the same functionality as the VFW SDK sample
"AviCap32".
Updates
V1.0 (11
October 2000)
V1.1 (16 October 2000)
- The following values have been made persistent
a) The name of the capture file
b) The capture frame rate
c) Whether audio should be captured
d) The limit capture option
e) The time limit option
f) The capture width, height and bit depth
g) The stretch option
h) The VFW device last connected to
i) The audio settings
j) The overlay and preview state
- The program auto connects if there is only one device
- Stretching the image to the client area is now
supported
- User is now prompted to hit ok when starting to capture
video
- Sample app now handles palette messages correctly
- The program brings up the connection dialog initially
if there is multiple devices installed.
V1.11 (19 December 2006)
- Updated the copyright details
- Updated the sample app to clean compile on VC 2005
- Updated the documentation to use the same style as my web site.
- Code now uses newer C++ style casts instead of C style casts.
- Removed CAVICapWnd destructor as it was unused
- Fixed a bug in CAVICapWnd::SetUserData where the wrong message was being
used.
- Reviewed all TRACE statements for correctness.
- Addition of a AVICAPWND_EXT_CLASS preprocessor macro to allow the class
to be more easily added to an extension DLL.
V1.12 (29 December 2008)
- Updated copyright details
- Removed VC 6 style AppWizard comments from the code.
- Updated code to compile correctly using _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
define
- Code now compiles cleanly using Code Analysis (/analyze)
- The code now only supports VC 2005 or later.
- Fixed a bug in the ManualCreatePalette method where the wrong windows
message was being used.
- Various functions now take a LPCTSTR instead of a const CString&
parameter.
- Code now supports the WM_CAP_GET_MCI_DEVICE message
- SetScroll method now takes a LPPOINT parameter
- Fixed a bug in GetDescription where the description parameter was not
being passed by reference.
3 July 2009
- Updated the zip file to include correct sln and vcproj files