I'm trying to think of the best way to hold a dynamic (determined at run-time)
structure in memory. The structure needs to hold small database tables (usually)
of different types for large numbers of calculations in memory.
What I need is some sort of dynamic UDT array where I can choose the types at runtime
but that's not going to happen it seems.
Before I go playing with all the HEAPALLOC APIs I thought I'd ask if there was
an easier way to do it, maybe like
Dim an array of Dwords for use as array pointers
call function in a loop to dim an array of a X type and pass the pointer back
... or would the dimensioned arrays just fall out of scope and leave me with null pointers... ?
Linked lists are not flexible enough! How is this sort of thing usually done?
I suppose what I'm after is a dynamic recordset object without the object methods
I'm all ears to ideas as I gather many of you have done this sort of stuff before.
Thanks
------------------
Paul Dwyer
Network Engineer
Aussie in Tokyo
(Paul282 at VB-World)
structure in memory. The structure needs to hold small database tables (usually)
of different types for large numbers of calculations in memory.
What I need is some sort of dynamic UDT array where I can choose the types at runtime
but that's not going to happen it seems.
Before I go playing with all the HEAPALLOC APIs I thought I'd ask if there was
an easier way to do it, maybe like
Dim an array of Dwords for use as array pointers
call function in a loop to dim an array of a X type and pass the pointer back
... or would the dimensioned arrays just fall out of scope and leave me with null pointers... ?
Linked lists are not flexible enough! How is this sort of thing usually done?
I suppose what I'm after is a dynamic recordset object without the object methods
I'm all ears to ideas as I gather many of you have done this sort of stuff before.
Thanks
------------------
Paul Dwyer
Network Engineer
Aussie in Tokyo
(Paul282 at VB-World)
Comment