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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unsigned Integer Arrays?

Unsigned Integer Arrays?

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structuresperformancequestionannouncement
4 Posts 3 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.
  • S Offline
    S Offline
    Software2007
    wrote on last edited by
    #1

    Does MFC not have a built in collection for signed integer arrays, similar to CUIntArray and CDWordArray but for signed? I need to have signedInt array as a member of class to be passed around as member of the object. The only way I can think of is by making arr as a member as in, int *arr = new int[], and release memory in destructor? Anybody?

    C 1 Reply Last reply
    0
    • S Software2007

      Does MFC not have a built in collection for signed integer arrays, similar to CUIntArray and CDWordArray but for signed? I need to have signedInt array as a member of class to be passed around as member of the object. The only way I can think of is by making arr as a member as in, int *arr = new int[], and release memory in destructor? Anybody?

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      std::vector yay;

      image processing toolkits | batch image processing

      S 1 Reply Last reply
      0
      • C Chris Losinger

        std::vector yay;

        image processing toolkits | batch image processing

        S Offline
        S Offline
        Software2007
        wrote on last edited by
        #3

        good point, I assume there is no problem mixing up MFC with stl. All I need to do is probably expose std namespace. Thanks, will try it.

        R 1 Reply Last reply
        0
        • S Software2007

          good point, I assume there is no problem mixing up MFC with stl. All I need to do is probably expose std namespace. Thanks, will try it.

          R Offline
          R Offline
          Rick York
          wrote on last edited by
          #4

          Just add in exactly what Chris has in his post. You do not need a using statement because what he wrote is fully qualified. You just need to include the appropriate header which I think is without the .h.

          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