Well... although a dynamically growing vector will still be slower than a pre-allocated array. Although you can presize a vector as well but that would require you to know about the speed cost of dynamic allocation and how vectors allocate arrays internally. Guess what I'm getting at is... you have to know at least a little about your containers and how you're using them. In summary, no free ride. ;P :)
Look at your list of published articles, and see what you've 'co-authored' lately. Interesting, most people when they figure out that hack, make Chris their co-author.
Christian Graus Driven to the arms of OSX by Vista.
Alexander Fedorov wrote:
but how do I inject something that can write into the page without erasing it?
Well you already have the inject part working correct? So you need to figure out how to modify the HTML using javascript without using document.write. AFAIK you would use the HTML DOM[^] to do that. So for example say you had a page with span element in it and you wanted to change the text in the span to say "Code Project". You would get the reference to span element using the HTML DOM and then: theSpan.innerText = "Code Project"; something like that for IE but all browsers are not equal. Of course how you get the reference to the span element depends on the page you are working with.
led mike