So I am starting to integrate the new vb6 JS engine me and claude wrote, and I noticed that the COM handling was calling my method twice. VB6 callby name is deficient. You end up with crap like this:
If the method doesnt return an object, then you detect the error, and have to call it a second time trying to get a normal variant return value without the set keyword :(
But the method gets called twice!
Also you will notice you need to know the arg count and get a big block of if statements instead of just passing a variant array of args!
So...we fixed both of those problems with a CallByNameEx implemented in C.
Hairy! dim args(1) as variant and dim args() redim dont seem to be passed the same way. Anyway..I think its good time will tell!
Ill admit it, Id be toast without Claude on this one...