- Messages
- 368
- Country

I'm working on a radar gauge to display shipping near the user aircraft. What I'd like to do is take the data SimConnect is giving me, do a couple of calculations to get range and bearing and then put it in an array. Once that's done the drawing routine can work its way through the array to draw all the objects before starting again.
The problem I've got is that the number of objects is varying over time so either I make an array large enough to hold the data on as many boats as I'm likely to come across (~300 with full boat and shipping traffic near the coast). Or create a new array the right size every time and delete it at the end of the drawing cycle.
The first seems inelegant and wasteful, unfortunately I can't figure out how to create a dynamically sized array in a dll gauge.
Does anyone know if this is possible and if so how to go about it?
The problem I've got is that the number of objects is varying over time so either I make an array large enough to hold the data on as many boats as I'm likely to come across (~300 with full boat and shipping traffic near the coast). Or create a new array the right size every time and delete it at the end of the drawing cycle.
The first seems inelegant and wasteful, unfortunately I can't figure out how to create a dynamically sized array in a dll gauge.
Does anyone know if this is possible and if so how to go about it?

