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. What's wrong with this:

What's wrong with this:

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

    #ifdef __cplusplus extern "C" { #endif typedef enum _DATA_TYPE { NONE_DATA, JP_DATA, DF_DATA, DATA_RANGE } DATA_TYPE; #ifdef __cplusplus } #endif

    D 1 Reply Last reply
    0
    • J jimNLX

      #ifdef __cplusplus extern "C" { #endif typedef enum _DATA_TYPE { NONE_DATA, JP_DATA, DF_DATA, DATA_RANGE } DATA_TYPE; #ifdef __cplusplus } #endif

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Nothing syntactically. What do you think's wrong with it?


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      J 1 Reply Last reply
      0
      • D David Crow

        Nothing syntactically. What do you think's wrong with it?


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        J Offline
        J Offline
        jimNLX
        wrote on last edited by
        #3

        ...h(81) : error C2011: '_DATA_TYPE' : 'enum' type redefinition

        D J 2 Replies Last reply
        0
        • J jimNLX

          ...h(81) : error C2011: '_DATA_TYPE' : 'enum' type redefinition

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Which means there's already a _DATA_TYPE defined someplace else. Put the cursor on it and press F12 should take you to the other definition.


          Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

          1 Reply Last reply
          0
          • J jimNLX

            ...h(81) : error C2011: '_DATA_TYPE' : 'enum' type redefinition

            J Offline
            J Offline
            jimNLX
            wrote on last edited by
            #5

            Anybody have any ideas to help me resolve this problem? Thanks for any help

            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