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 to associate an index value with the cstring objects in a CStringArray in MFC.?

How to associate an index value with the cstring objects in a CStringArray in MFC.?

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelptutorialquestion
3 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.
  • M Offline
    M Offline
    mbatra31
    wrote on last edited by
    #1

    Hi, I am using CStringArray to store images in sequence. I need one help. I will load an image on the canvas area, then I'll apply an effect on that image. Then I'll store that image into CStringArray. I'll store the images in sequence as I'll apply an effect one after one. Now to undo the last applied effect I'll get the last image and load the same into canvas Area. Isuue is that I am using check boxes to apply effects on images. If user has applied effect 'A', then 'B', then 'C', and so on. Now if user has unchecked the box with effect 'B', then It should load the image which was before applying effect 'B'. I want to store and know the state of the image before applying the effect and load that image only. Anybody have any idea how to do this. I would appreciate if anyone can suggest me a better solution than what I am using. Regards, Mbatra

    _ L 2 Replies Last reply
    0
    • M mbatra31

      Hi, I am using CStringArray to store images in sequence. I need one help. I will load an image on the canvas area, then I'll apply an effect on that image. Then I'll store that image into CStringArray. I'll store the images in sequence as I'll apply an effect one after one. Now to undo the last applied effect I'll get the last image and load the same into canvas Area. Isuue is that I am using check boxes to apply effects on images. If user has applied effect 'A', then 'B', then 'C', and so on. Now if user has unchecked the box with effect 'B', then It should load the image which was before applying effect 'B'. I want to store and know the state of the image before applying the effect and load that image only. Anybody have any idea how to do this. I would appreciate if anyone can suggest me a better solution than what I am using. Regards, Mbatra

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      HINT:

      map,

      use this to create association between index and CString object.

      You talk about Being HUMAN. I have it in my name AnsHUMAN

      1 Reply Last reply
      0
      • M mbatra31

        Hi, I am using CStringArray to store images in sequence. I need one help. I will load an image on the canvas area, then I'll apply an effect on that image. Then I'll store that image into CStringArray. I'll store the images in sequence as I'll apply an effect one after one. Now to undo the last applied effect I'll get the last image and load the same into canvas Area. Isuue is that I am using check boxes to apply effects on images. If user has applied effect 'A', then 'B', then 'C', and so on. Now if user has unchecked the box with effect 'B', then It should load the image which was before applying effect 'B'. I want to store and know the state of the image before applying the effect and load that image only. Anybody have any idea how to do this. I would appreciate if anyone can suggest me a better solution than what I am using. Regards, Mbatra

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        mbatra31 wrote:

        I am using CStringArray to store images

        You may find that CByteArray[^] would be a better choice.

        One of these days I'm going to think of a really clever signature.

        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