BUG: You receive the C4146 warning when you use #import with ActiveX Data Objects (ADO) 2.5 or later (253317)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q253317 SYMPTOMS
When you compile an ActiveX Data Objects (ADO) application in Visual C++ 6.0 by using the #import directive with version 2.5 or 2.6 of Msado15.dll, you may receive the following warning:
warning C4146: unary minus operator applied to unsigned type, result still unsigned
RESOLUTION
Although this problem will most likely have no effect on your application, you can suppress the warning with the following code:
#pragma warning(push)
#pragma warning(disable:4146)
#import "c:\program files\common files\system\ado\MSADO15.DLL"
#pragma warning(pop)
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 4/21/2005 |
---|
Keywords: | kbtshoot kbBug kbpending KB253317 kbAudDeveloper |
---|
|