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. Other Discussions
  3. The Back Room
  4. Programming question moved from lounge.

Programming question moved from lounge.

Scheduled Pinned Locked Moved The Back Room
comquestion
10 Posts 9 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.
  • C Offline
    C Offline
    ColinDavies
    wrote on last edited by
    #1

    {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

    Sonork ID 100.9197:Colin

    You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

    P M D J C 7 Replies Last reply
    0
    • C ColinDavies

      {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

      Sonork ID 100.9197:Colin

      You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

      P Offline
      P Offline
      Philip Fitzsimons
      wrote on last edited by
      #2

      vb does not support pointers in a way that is comparable to c. I've used VB since the first beta - the only way to use pointers is via the win API. In fact its the only time you can use them :) VB does allow you can get the address of a vb function or structure, but the language does not really support pointers directly. Generally pointer support is there in terms of calling api.


      "When the only tool you have is a hammer, a sore thumb you will have."

      R 1 Reply Last reply
      0
      • C ColinDavies

        {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

        Sonork ID 100.9197:Colin

        You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

        M Offline
        M Offline
        Mauricio Ritter
        wrote on last edited by
        #3

        You can use references... but thats not real pointers. Colin^Davies wrote: I just had a VBer tell me that in VB it was easy to use pointers Poor guy... he probably doesn´t even know what a pointer is. ;P ;P ;P Mauricio Ritter - Brazil Sonorking now: 100.13560 MRitter :jig: I've gone sending to outer space, to find another race :jig:

        R 1 Reply Last reply
        0
        • M Mauricio Ritter

          You can use references... but thats not real pointers. Colin^Davies wrote: I just had a VBer tell me that in VB it was easy to use pointers Poor guy... he probably doesn´t even know what a pointer is. ;P ;P ;P Mauricio Ritter - Brazil Sonorking now: 100.13560 MRitter :jig: I've gone sending to outer space, to find another race :jig:

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          Mauricio Ritter wrote: he probably doesn´t even know what a pointer is Maybe he was confusing a pointer with a mouse. It is called a pointing device by some. This Signature is Temporarily Out of Order

          1 Reply Last reply
          0
          • C ColinDavies

            {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

            Sonork ID 100.9197:Colin

            You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

            D Offline
            D Offline
            David Stone
            wrote on last edited by
            #5

            Colin^Davies wrote: I just had a VBer tell me that in VB it was easy to use pointers :wtf::omg: Ummm...no. It's not. You can only use it when dealing with the Win32 API. Tell him to learn a real language, and tell him, no, VB.NET doesn't count. :-D David Stone But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*. Shog9

            1 Reply Last reply
            0
            • C ColinDavies

              {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

              Sonork ID 100.9197:Colin

              You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

              J Offline
              J Offline
              Jason Gerard
              wrote on last edited by
              #6

              In case you wanted to know, the relevant pointer functions for VB6 are VarPtr, StrPtr, and ObjPtr. These are undocumented. They return the address of the variable as an Integer. Unofficial Documentation for VarPtr, StrPtr, and ObjPtr [^] Jason Gerard

              1 Reply Last reply
              0
              • C ColinDavies

                {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

                Sonork ID 100.9197:Colin

                You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                C Offline
                C Offline
                Chris Losinger
                wrote on last edited by
                #7

                yes, you can use pointers in VB. my customers do it millions of times every day. -c


                For men use, if they have an evil turn, to write it in marble: and whoso doth us a good turn we write it in dust. -- Sir Thomas More

                image effects!

                1 Reply Last reply
                0
                • C ColinDavies

                  {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

                  Sonork ID 100.9197:Colin

                  You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                  D Offline
                  D Offline
                  Daniel Turini
                  wrote on last edited by
                  #8

                  Yes, you can, but not having the same C++ semantics: VB Strings are actually much simillar to _bstr_t or CComBSTR. They HOLD a pointer to a string; Any class or object, used with the "Set" keyword is a pointer to an instance, reference counted. The simillar concept in VC++ is a reference (CXpto &), or a COM SmartPtr, like IUnknownPtr or IDispatchPtr. You have pointers to functions for Callbacks with the AddressOf operator. And you have Long vars (int32), access to the API and some undocumented functions like StrPtr, VarPtr and so to do some magic. No, I'm not proud of knowing lots of VB. Concussus surgo. When struck I rise.

                  1 Reply Last reply
                  0
                  • C ColinDavies

                    {EDIT]This question was moved from the lounge.[/EDIT] Ok this isn't a real programming question because its about VB. My knowledge of VB is incredibly limited because I have been told that it is a filthy practice, that it should not even be practiced by consenting adults. So maybe someone who has come through the trenches can direct me. I just had a VBer tell me that in VB it was easy to use pointers I had always assumed that, that would not be possible, in such a mangled low-life language. I'm sure they didn't know what they were talking about and I think they were inferring that absolute addresses could be pointers. Can someone confirm or deny this. may be make up a separate CP login so you won;t be identified. Regardz Colin J Davies

                    Sonork ID 100.9197:Colin

                    You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                    R Offline
                    R Offline
                    Ray Cassick
                    wrote on last edited by
                    #9

                    Colin^Davies wrote: Ok this isn't a real programming question because its about VB. I am not even going to dignify thsi with a response. Damn, I just did...;P

                    1 Reply Last reply
                    0
                    • P Philip Fitzsimons

                      vb does not support pointers in a way that is comparable to c. I've used VB since the first beta - the only way to use pointers is via the win API. In fact its the only time you can use them :) VB does allow you can get the address of a vb function or structure, but the language does not really support pointers directly. Generally pointer support is there in terms of calling api.


                      "When the only tool you have is a hammer, a sore thumb you will have."

                      R Offline
                      R Offline
                      Ray Cassick
                      wrote on last edited by
                      #10

                      Philip Fitzsimons wrote: "When the only tool you have is a hammer, a sore thumb you will have." It seems to me that this is exactly what 99% of C++ programmers I meet are doing :)

                      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