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. pointer

pointer

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.
  • G Offline
    G Offline
    ginjikun
    wrote on last edited by
    #1

    hi everyone! good day! i just wanted to ask whats the difference between declaring a variable like this TEST* pTest; with LPTEST pTest; // see code below typedef struct { ... } TEST, *LPTEST; thanks! newbie :)

    T CPalliniC 2 Replies Last reply
    0
    • G ginjikun

      hi everyone! good day! i just wanted to ask whats the difference between declaring a variable like this TEST* pTest; with LPTEST pTest; // see code below typedef struct { ... } TEST, *LPTEST; thanks! newbie :)

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      there's none... because LPTEST is just a synonym for being a pointer to a TEST. but for readability reasons, i prefer using the TEST* notation


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      R 1 Reply Last reply
      0
      • T toxcct

        there's none... because LPTEST is just a synonym for being a pointer to a TEST. but for readability reasons, i prefer using the TEST* notation


        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        R Offline
        R Offline
        Roger Stoltz
        wrote on last edited by
        #3

        toxcct wrote:

        lisibility

        :confused: :~ Frenglish for "readability", huh tox'? From the french word "lire"?


        "It's supposed to be hard, otherwise anybody could do it!" - selfquote
        "High speed never compensates for wrong direction!" - unknown

        T 1 Reply Last reply
        0
        • R Roger Stoltz

          toxcct wrote:

          lisibility

          :confused: :~ Frenglish for "readability", huh tox'? From the french word "lire"?


          "It's supposed to be hard, otherwise anybody could do it!" - selfquote
          "High speed never compensates for wrong direction!" - unknown

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          oh sh*t ! rotfl, you're damn right... i'm changing it immediately ! :-O


          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          R 1 Reply Last reply
          0
          • T toxcct

            oh sh*t ! rotfl, you're damn right... i'm changing it immediately ! :-O


            [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

            R Offline
            R Offline
            Roger Stoltz
            wrote on last edited by
            #5

            :laugh: It was good though, it made me laugh as well.


            "It's supposed to be hard, otherwise anybody could do it!" - selfquote
            "High speed never compensates for wrong direction!" - unknown

            G 1 Reply Last reply
            0
            • G ginjikun

              hi everyone! good day! i just wanted to ask whats the difference between declaring a variable like this TEST* pTest; with LPTEST pTest; // see code below typedef struct { ... } TEST, *LPTEST; thanks! newbie :)

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

              They are the same, basically it's only the MS way to fight the pointer notation fear... :)

              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.

              In testa che avete, signor di Ceprano?

              1 Reply Last reply
              0
              • R Roger Stoltz

                :laugh: It was good though, it made me laugh as well.


                "It's supposed to be hard, otherwise anybody could do it!" - selfquote
                "High speed never compensates for wrong direction!" - unknown

                G Offline
                G Offline
                ginjikun
                wrote on last edited by
                #7

                tnx a lot for the answers! :) great help! newbie :)

                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