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. difference between static_cast and dynamic cast?

difference between static_cast and dynamic cast?

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 5 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.
  • R Offline
    R Offline
    rowdy_vc
    wrote on last edited by
    #1

    hi What is the difference between static_cast and dynamic_cast ? When we are using these two function?

    *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

    M C C 3 Replies Last reply
    0
    • R rowdy_vc

      hi What is the difference between static_cast and dynamic_cast ? When we are using these two function?

      *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      Please read C++ books.

      Maxwell Chen

      1 Reply Last reply
      0
      • R rowdy_vc

        hi What is the difference between static_cast and dynamic_cast ? When we are using these two function?

        *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Here[^] is a very good article about the different C++ cast operators.

        Cédric Moonen Software developer
        Charting control [v1.3]

        1 Reply Last reply
        0
        • R rowdy_vc

          hi What is the difference between static_cast and dynamic_cast ? When we are using these two function?

          *****THANKS N ADVANCE**** Mathen.K (I WILL TRY MY LEVEL BEST )

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          For instance, they have different pages on MSDN Visual C++ Language Reference:

          • static_cast
          • dynamic_cast

          :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          B 1 Reply Last reply
          0
          • C CPallini

            For instance, they have different pages on MSDN Visual C++ Language Reference:

            • static_cast
            • dynamic_cast

            :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

            B Offline
            B Offline
            BadKarma
            wrote on last edited by
            #5

            You have to admit that it isn't easy to find this information. Not everyone knows that when you need the help of static_cast you need the c36yw7x9(VS.80).aspx page and for the dynamic_cast yoe need the cby9kycs(VS.80).aspx

            codito ergo sum

            C 1 Reply Last reply
            0
            • B BadKarma

              You have to admit that it isn't easy to find this information. Not everyone knows that when you need the help of static_cast you need the c36yw7x9(VS.80).aspx page and for the dynamic_cast yoe need the cby9kycs(VS.80).aspx

              codito ergo sum

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              It's called cryptographic help. ;P

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

              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