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. Exchange of values among different classes

Exchange of values among different classes

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++learning
2 Posts 2 Posters 2 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
    summo
    wrote on last edited by
    #1

    I have been unable to pass a value from one class to the other in an SDI application in MFC. I tried it by declaring a static variable in a header file and then including this header file in both the classes.Then by incrementing value in one class and I tried to get in in the other class. That is not working properly. It is not updating the value. Plz suggest me how to do it(i.e pass val. from one dialog to the other ); Suggest me the easiest ways of doing so. Because I am a beginner in VC++ so kindly guide me step by step. Reply me soon

    U 1 Reply Last reply
    0
    • S summo

      I have been unable to pass a value from one class to the other in an SDI application in MFC. I tried it by declaring a static variable in a header file and then including this header file in both the classes.Then by incrementing value in one class and I tried to get in in the other class. That is not working properly. It is not updating the value. Plz suggest me how to do it(i.e pass val. from one dialog to the other ); Suggest me the easiest ways of doing so. Because I am a beginner in VC++ so kindly guide me step by step. Reply me soon

      U Offline
      U Offline
      User 12458882
      wrote on last edited by
      #2

      Same problem i am facing.

      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