Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - Let's Rant about Visual Basic! | New poll | | |
Pages: 1 2 3 4 | Add to favorites | Next newer thread | Next older thread |
User | Post | ||
||bass Administrator Since: 11-17-05 From: Salem, Connecticut Last post: 6284 days Last view: 6283 days |
| ||
Originally posted by Kyoufu KawaPossibly a third? Therein lies the problem. These 'pointers' from the examples look more like specialized pointer-like objects that simply capture the general-esque functionality of true pointers for specific cases. I still fail to see actual pointer support in the language specification itself. (Actual support being something other than what amounts to what appear to be little more than wrapper objects.) (edited by ||bass on 01-30-07 10:50 PM) |
|||
Guy Perfect Since: 11-18-05 Last post: 6285 days Last view: 6283 days |
| ||
Pointer support has always been limited in Microsoft variants of BASIC, but they really clamped down on it when they introduced Visual Basic.
Back in the days of QBASIC, there were the PEEK function and POKE statement, which could retrieve a byte from memory and write a byte to memory, respectively. Those procedures have since gone the way of Bill Clinton's credibility. The only thing in VB nowadays, leastways with VB6 (VB.NET isnt' my specialty) are very specific "obtain a pointer value only" functions and no ability to write data to memory. The following things exist in VB6: VarPtr Function - Retrieves the address of a variable. Was only available as a DLL import in VB4, but was later added to the IDE with VB5. Example: "X = VarPtr(Y)" AddressOf Operator - Added in VB5 for support with various API calls. It's essentially a function for a procedure name that returns the function pointer of the given procedure. Provided for use with callbacks. Example: "ErrCode = apiUseCallback(AddressOf SomeKindaFunction)" |
Pages: 1 2 3 4 | Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - Let's Rant about Visual Basic! | | |