msado15.dll warning?
-
Hi all, I am using msado15.dll in my application by #import directive as follows #import "msado15.dll"\ no_namespace rename("EOF", "EndOfFile") while compiling i am getting the following warning "\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned" can any one explain me why this warning hapens and what is the solution. Thanks in advance anju
-
Hi all, I am using msado15.dll in my application by #import directive as follows #import "msado15.dll"\ no_namespace rename("EOF", "EndOfFile") while compiling i am getting the following warning "\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned" can any one explain me why this warning hapens and what is the solution. Thanks in advance anju
This is an MS bug, Q253317. It can safely be ignored, as I have been doing so for years. The quickest way to avoid seeing it is to change your import statement to the following:
#pragma warning( push ) #pragma warning( disable: 4146 ) #import "c:\program files\common files\system\ado\MSADO15.DLL" no_namespace rename( "EOF", "EndOfFile" ) #pragma warning(pop)
HTH-
Ty
-
This is an MS bug, Q253317. It can safely be ignored, as I have been doing so for years. The quickest way to avoid seeing it is to change your import statement to the following:
#pragma warning( push ) #pragma warning( disable: 4146 ) #import "c:\program files\common files\system\ado\MSADO15.DLL" no_namespace rename( "EOF", "EndOfFile" ) #pragma warning(pop)
HTH-
Ty