Bobofbobland
Programmer
HI,
I've coded myself into a bit of a corner here. I'm manipulating silly amounts of data in VB. Enough that I wanted to avoid Collections and Dictionaries, and instead have created wrapper classes around arrays.
Also, I should mention at this point they are arrays of objects.
Now I have the age old problem of removing something from the middle of the array. I could create a queue system as the indexing of the array is not too important (for once), but I'd prefer not to add that complexity. Ideally I'ld like to just shift the whole area of memory down a bit. Can you tell I'm a C programmer?
I've tracked down the RtlMoveMemeory API function (CopyMemory) which I know I can use for Longs... but can I use it for my class instances. And does it make a difference if I'm using Obj or MyClass as the type. I'm told the class reference is always 4 bytes long. So everything is okay, yes?
Any confirmation would be helpful. I'm open to other suggestions as to how to accomplish all this though, hence the interminable rambling at the start...
I've coded myself into a bit of a corner here. I'm manipulating silly amounts of data in VB. Enough that I wanted to avoid Collections and Dictionaries, and instead have created wrapper classes around arrays.
Also, I should mention at this point they are arrays of objects.
Now I have the age old problem of removing something from the middle of the array. I could create a queue system as the indexing of the array is not too important (for once), but I'd prefer not to add that complexity. Ideally I'ld like to just shift the whole area of memory down a bit. Can you tell I'm a C programmer?
I've tracked down the RtlMoveMemeory API function (CopyMemory) which I know I can use for Longs... but can I use it for my class instances. And does it make a difference if I'm using Obj or MyClass as the type. I'm told the class reference is always 4 bytes long. So everything is okay, yes?
Any confirmation would be helpful. I'm open to other suggestions as to how to accomplish all this though, hence the interminable rambling at the start...