The information in this article applies to:
SYMPTOMSThe following error message occurs when compiling an application with Microsoft Visual C++, version 2.0 or 2.1, which uses the Microsoft Video for Windows header file, VFW.H, and the Microsoft Foundation Classes (MFC): This error message does not occur when using Microsoft Visual C++ version 1.5 for Windows with the Microsoft Video for Windows 1.1 DK installed while running under Microsoft Windows operating system version 3.1. RESOLUTIONIf the application does not require binary string (BSTR) support you can eliminate this error message by defining "_AFX_NO_BSTR_SUPPORT" before the MFC include files. For example, place the code below at the beginning of the STDAFX.H file:
If the application does require BSTR support, then you can eliminate this
error message by including the code below before including the VFW.H file:
MORE INFORMATION
This error message occurs by design. MFC versions 3.0 and 3.1 require
either that "OLE2ANSI" is defined when including the object linking and
embedding (OLE) headers or that "_AFX_NO_BSTR_SUPPORT" is defined. You
cannot use both ANSI-BSTRs (which is the default) and Unicode-BSTRs; you
must use one or the other.
Steps to Reproduce Problem
Additional query words: 3.10 2.00 2.10 CString port porting VfWDK
Keywords : |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |