Quote Originally Posted by Niya View Post
Well the VB6 compiler can compile to native code so in theory it can be as fast as C++. I too would like to tackle doing comparisons between the languages. We'd need to come up with some kind of string processing operation that's simple enough to write in a short time yet rigorous enough to provide an accurate assessment. Or maybe a few different yet simple operations after which we can aggregate the results of each implementation in both languages.
There's no need to "come up with some simple StringOp" anymore to prove that you are wrong with your statement about speed.
E.g. the vb6-runtime is written in C++ and comes with a Replace-function, which in tests proved up to 10-15 times slower than an optimized Replace written in VB6 itself.

http://www.xbeat.net/vbspeed/c_Replace.htm#Replace10

In the german newsgroups we dealt with safearrays already before Matt Curlands book came out - not sure about the english VB-
newsgroups at that time - I was not yet participating there because I couldn't speak more than a few words of the english language then.

Bonnie thankfully corrected your wrong statement about immutability of BSTRs already on two counts (SafeArrays and the Mid-statement),
so not much to say anymore for the moment - but if I may suggest something...;
you shouldn't shoot as fast as you're currently doing (also in other threads) ... That you failed writing a fast parser in
VB6 doesn't mean that it cannot be done Niya - don't judge from your own capabilities on the capabilities of others -
especially not about what can be done in a given language - especially when it is one, you had not much practice with
over the last years.


Olaf