Array element Pointers?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gregory_may

    Array element Pointers?

    Is there a way in VB.Net to declare a local variable that will manipulate an
    array element .... kind of like an item pointer to a global array?



  • Mattias Sjögren

    #2
    Re: Array element Pointers?

    [color=blue]
    >Is there a way in VB.Net to declare a local variable that will manipulate an
    >array element .... kind of like an item pointer to a global array?[/color]

    Can't you just access the array directly?


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • gregory_may

      #3
      Re: Array element Pointers?

      I am using a thread pool. When executing the callback, I was having trouble
      getting the correct context information. I wrapped the array in a class &
      am using a "key" to find the right structure context structure I need.

      The reference types seemed to act weirdly in the thread callbacks. The
      Classed wrapper seems to be fixing my problem ...

      I didn't want to update directly ... its an array list of structures. The
      syntax to get & update the right elements is very messy & doesn't actually
      work correctly in Vb.Net. (see my other post, late binding problems).

      "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
      news:%237mY9%23 MNGHA.3856@TK2M SFTNGP12.phx.gb l...[color=blue]
      >[color=green]
      >>Is there a way in VB.Net to declare a local variable that will manipulate
      >>an
      >>array element .... kind of like an item pointer to a global array?[/color]
      >
      > Can't you just access the array directly?
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [C# MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.[/color]


      Comment

      Working...