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. how can i change "no_namespace" ?

how can i change "no_namespace" ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasehelp
2 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.
  • L Offline
    L Offline
    liuyue
    wrote on last edited by
    #1

    i want to apply ado to access database. i put following in my stdafx.h #import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") but when i compile ,there are "error C2011: 'LockTypeEnum' : 'enum' type redefinition". what should i change no_namespace into?

    C 1 Reply Last reply
    0
    • L liuyue

      i want to apply ado to access database. i put following in my stdafx.h #import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") but when i compile ,there are "error C2011: 'LockTypeEnum' : 'enum' type redefinition". what should i change no_namespace into?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      the bit at the end that says rename ("EOF", "adoEOF") could possibly also be used to rename LockTypeEnum ( I don't know for sure ). Or you could check where the clash is and fix it at the other end ( the other place that defines LockTypeEnum ). Or you can remove it entirely, which means that ADO will be imported within a namespace. Christian Graus - Microsoft MVP - C++

      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