Programming question moved from lounge.
-
{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.
-
{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.
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."
-
{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.
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:
-
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:
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
-
{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.
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
-
{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.
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
-
{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.
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
-
{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.
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.
-
{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.
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
-
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."
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 :)