>Many systems I've seen specify the size of the data being returned. We have to provide a space at least as big as the returned value. QuickBooks SDK comes to mind.
I think I run into this problem with an ActiveX we use to manipulate some Digital Recorders and their cameras, but... can't remember very well
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges