Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. msado15.dll warning?

msado15.dll warning?

Scheduled Pinned Locked Moved C / C++ / MFC
questiondebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anju
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • A 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

      T Offline
      T Offline
      TyMatthews
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • T TyMatthews

        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

        A Offline
        A Offline
        anju
        wrote on last edited by
        #3

        Hi TyMatthews, Thanks a lot now code is working fine. anju

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups