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.tlh

msado15.tlh

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
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.
  • B Offline
    B Offline
    BadJerry
    wrote on last edited by
    #1

    I am porting a COM object from VC6.0 to Visual Studo 2005 and I get the following error: error C2011: 'spcADO::CursorTypeEnum' : 'enum' type redefinition The reason for this is that the file msado15.tlh gets generated in the DebugU directory AND the project directory. Any idea how I can solve this? Thanks, Jerome

    S 1 Reply Last reply
    0
    • B BadJerry

      I am porting a COM object from VC6.0 to Visual Studo 2005 and I get the following error: error C2011: 'spcADO::CursorTypeEnum' : 'enum' type redefinition The reason for this is that the file msado15.tlh gets generated in the DebugU directory AND the project directory. Any idea how I can solve this? Thanks, Jerome

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Strange, #import doesn't generally do this. Have you tried quitting VS, removing the tlh/tli files, and doing a clean and build?

      Steve S Developer for hire

      B 1 Reply Last reply
      0
      • S Steve S

        Strange, #import doesn't generally do this. Have you tried quitting VS, removing the tlh/tli files, and doing a clean and build?

        Steve S Developer for hire

        B Offline
        B Offline
        BadJerry
        wrote on last edited by
        #3

        Yes it was weird - I tried that indeed but it did not work. I think it was caused by the fact that two cpp files had the same name. For some unknown reason, the obj files were generated incorrectly. I removed them from the project and re-added and it now works. Touch wood! Thanks for your help anyway!

        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