FIX: Error C2664 'AVIFileCreateStream' from Visual C++ 2.0/2.1ID: Q139825
|
The following error is generated when you compile an application under
Visual C++ version 2.0 or 2.1 that calls AVIFileCreateStream() and does not
use UNICODE:
error C2664: 'AVIFileCreateStream' : cannot convert parameter 3 from 'struct _AVISTREAMINFOA*' to 'struct _AVISTREAMINFOW*'
The Vfw.h header file from Visual C++ version 2.0 or 2.1 has the following
declaration for the AVIFileCreateStream() function:
STDAPI AVIFileCreateStream(PAVIFILE pfile,
PAVISTREAM FAR *ppavi,
AVISTREAMINFOW FAR *psi);
Microsoft has confirmed this to be a bug in Visual C++ versions 2.0 and 2.1. This bug was corrected in Visual C++ version 2.2. The Vfw.h header file from that product declares an AVIFileCreateStreamA() function in addition to the W variety, AVIFileCreateStreamW().
Additional query words: 3.50 2.10 2.00 4.00 Windows 95
Keywords : kbmm MMVideo
Version : 4.00 | 3.50 3.51 2.00 2.10
Platform : NT WINDOWS
Issue type :
Last Reviewed: March 6, 1999