We help IT Professionals succeed at work.

ADO compilation warning

s_lavie
s_lavie asked
on
Medium Priority
299 Views
Last Modified: 2010-04-02
Hi,
When using:
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "EndOfFile")

I get the following compilation warning:

c:\myprojects\ado\debug\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

Which is obviously isn't my code.
What's the reason and how do I solve this?
Should I be worry about that warning?
Comment
Watch Question

Commented:
You can ignore the warning. It is a Microsoft Bug. The workaround to suppress it is to add the following to your code:

#pragma warning(push)
#pragma warning(disable:4146)
#import "c:\program files\common files\system\ado\MSADO15.DLL"     // path here
#pragma warning(pop)


If you'd feel better seeing Microsoft declare it as a bug, here you go:

http://support.microsoft.com/support/kb/articles/Q253/3/17.ASP

Explore More ContentExplore courses, solutions, and other research materials related to this topic.