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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C / C++ / MFC
7 Posts 4 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.
  • T Offline
    T Offline
    Thanhnamdo
    wrote on last edited by
    #1

    [Message Deleted]

    Steve EcholsS _ H 3 Replies Last reply
    0
    • T Thanhnamdo

      [Message Deleted]

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      What exactly are you trying to do?


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      1 Reply Last reply
      0
      • T Thanhnamdo

        [Message Deleted]

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

        Thanhnamdo wrote

        accept this value from an other Dialog of an other class

        If you want to pass value from one dialog to another you can access the parent dialog's variables by CMain* pMain=(CMain*)GetParent(); Then use this pointer to call member functions / change or alter variables of the first (parent) dialog. Another way is to pass a pointer from one class to another. Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        1 Reply Last reply
        0
        • T Thanhnamdo

          [Message Deleted]

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Whats application type if you have two dialog you can use CMain m_Main=(CMain*)GetParent();and in another application you can use m_Main->(your variable)or(your function)and include header from Main class in another class

          _**


          **_

          whitesky


          T _ 2 Replies Last reply
          0
          • H Hamid Taebi

            Whats application type if you have two dialog you can use CMain m_Main=(CMain*)GetParent();and in another application you can use m_Main->(your variable)or(your function)and include header from Main class in another class

            _**


            **_

            whitesky


            T Offline
            T Offline
            Thanhnamdo
            wrote on last edited by
            #5

            Thank you everybody .I understanded and I'm trying to do it.

            1 Reply Last reply
            0
            • H Hamid Taebi

              Whats application type if you have two dialog you can use CMain m_Main=(CMain*)GetParent();and in another application you can use m_Main->(your variable)or(your function)and include header from Main class in another class

              _**


              **_

              whitesky


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

              WhiteSky wrote

              CMain m_Main=(CMain*)GetParent();

              A missing * Should be CMain* m_Main=(CMain*)GetParent();

              Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

              H 1 Reply Last reply
              0
              • _ _AnsHUMAN_

                WhiteSky wrote

                CMain m_Main=(CMain*)GetParent();

                A missing * Should be CMain* m_Main=(CMain*)GetParent();

                Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                yeah:)

                _**


                **_

                whitesky


                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