How to handle FindNearby results in C++

andywolpert
09-06-2005, 04:55 PM
Is there a way using C++ to return the results of FindNEarby (or any collection for that matter). I think the elements are getting released when they go out of scope.

What I really want to do is create a list of nearby but then take elements out of the list based on other criteria.

The cleanest way would seem to have a list to pass into various filtering routines.

Anybody know how to do this?

Thanks

Winwaed
09-06-2005, 05:50 PM
I think you'll have problems removing objects from the returned collection.

I would loop through the collection, extracting the data that is required. Filtering there & then, and or storing it in your own struct/class. A collection of these struct/classes can then be passed to each filter.


Richard

 
Web mp2kmag.com
mapforums.com