Hi VeT,

using a code similiar to this:

Code:
for(i=0; i<sizeOfGSVector(scheduler); i++) {
    scheduleTask = (SCHEDULETASK*)(getFromGSVector(scheduler,i));
}


works fine in several projects of mine.
Just when I directly access a position in the vector I need to use an int* as it is described in the documentation.

But are you sure to store your values like that in a vector?
In worst case you have to run through the whole vector to get back your values.

Wouldn't it be better to store your struct in a hashmap and then access it directly with a unique key?

In my current projekt (point&click adventure) I have hundreds of useable objects and each of them has additional data stored in structs ... I store those structs in a hashmap and as a key I use a unique ID that is written in string1 of the entity. So if I have the entity I can directly access all additional data by using the ID to get the struct out of the hashmap.

Regards,
Pegamode.