Microsoft KB Archive/218929

= FIX: UUID.LIB In VC6 Contains Bad Definition For IViewFilter When Wsed with OLE DB =

Article ID: 218929

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual C++ 6.0 Enterprise Edition

-



This article was previously published under Q218929



SYMPTOMS
E_NOINTERFACE is returned when you QueryInterface an OLE DB provider for the IViewFilter interface and the provider is known to properly support the IViewFilter interface. This output is received rather than the expected S_OK.



CAUSE
Your OLE DB consumer may have a different GUID value for IViewFilter obtained when linking with the Uuid.lib file. The library file Uuid.lib installed by Visual C++ 6.0 contains the GUID {3050F2F1-98B5-11CF-BB82-00AA00BDCE0B} for the IViewFilter interface. The correct GUID value for IViewFilter when used in conjunction with Oledb.h is {0C733A9B-2A1C-11CE-ADE5-00AA0044773D}.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



MORE INFORMATION
To verify that you have the correct GUID value for IViewFilter, run the following sample code from your consumer application:

OLECHAR wszGUID[1024]; ::StringFromGUID2( IID_IViewFilter,                      wszGUID,                       sizeof(wszGUID) / sizeof(OLECHAR) ); ::MessageBoxW( NULL, wszGUID, L"IViewFilter Guid Value", MB_OK ); If the message box displays the GUID {0C733A9B-2A1C-11CE-ADE5-00AA0044773D}, then you have a valid GUID for IViewFilter when used with OLE DB.

Keywords: kbbug kbfix kbdatabase kbmdacnosweep kbvs600sp3fix KB218929

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.