Article ID: 129953
Article Last Modified on 11/1/2006
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Workstation 3.5
- Microsoft Visual C++ 2.0 Professional Edition
- Microsoft Visual C++ 2.1
This article was previously published under Q129953
SYMPTOMS
The 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):
c:\msvc20\include\oleauto.h(214) : error C2371: 'BSTR' : redefinition;
different basic types
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.
RESOLUTION
If 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:
#define _AFX_NO_BSTR_SUPPORT
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:
#define OLE2ANSI
Additional query words: 3.10 2.00 2.10 CString port porting VfWDK
Keywords: KB129953