Re: Resolving Pointers
- From: "RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx>
- Date: Fri, 25 Sep 2009 17:08:53 +0100
I don't use threads, but will bear that one in mind.
RBS
"Tom Shelton" <tom_shelton@xxxxxxxxxxxxxxxxxx> wrote in message news:%23$RILnfPKHA.1796@xxxxxxxxxxxxxxxxxxxxxxx
On 2009-09-25, RB Smissaert <bartsmissaert@xxxxxxxxxxxxxxxx> wrote:Just came across this interesting looking code:
http://www.mvps.org/vbvision/_samples/Resolving_Pointers_Demo.zip
This project shows how you can resolve a 'dumb' pointer to an object
obtained via the hidden VB ObjPtr() function back into a fully referenced
object reference on which you can call methods and set properties. The
first time I saw this concept was in Bruce McKinney's book "Hardcore Visual
Basic" so Mr. Mckinney deserves any credit for the idea behind the demo.
And wonder if there is any good use for this. I know this is finding a
problem for a solution, but I have a feeling, that
this might have some practical use.
In the distant past, I've used this technique for sharing an object instance
across multiple threads...
--
Tom Shelton
.
- References:
- Resolving Pointers
- From: RB Smissaert
- Re: Resolving Pointers
- From: Tom Shelton
- Resolving Pointers
- Prev by Date: Re: Resolving Pointers
- Next by Date: Re: Converting Quick Basic to Visual Basic
- Previous by thread: Re: Resolving Pointers
- Next by thread: Re: Resolving Pointers
- Index(es):
Relevant Pages
|