I'd try to work with static.... and i offer you to make new version of your dll(probably you wouldnt use it, as you use your version many times in your projects, but it may be more friendly for users):

1a) with the help of
inline int _INT(var x) { return x>>10; }
convert second parameter to var, so we'd be able easily to get ascess to
any element of vector in loop without any troubles smile

1b) as variant, add new function getFromGSVectorElement, for example(just cant find better name), that would work like 1a)

2) add function insertIntoGSVectorUnique that will check, if the same element is already exist in vector


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro