VB String Array ??? (up to 100 pts)
Posted on 2002-03-03
I'm working on a project which is mainly written in VB, but makes use of various c++ components, for speed purposes.
My VB program makes use of multidimentional string arrays throughout the program, and one of the c++ utilities I've written passes back arrays of string (actually a variant array).
However, in my VB project I have to convert all my String() variables into variants and perform other conversion functions when passing these values into other functions (that expect a string as a parameter). Which seems to me to be negating the speed advantage I have of calling the c++ function in the first place.
Can I return a two dimentional string array back to VB from c++ using an ATL component ???
I've done this already using a safearray, passed back as a variant, but want to avoid this.
If the answer is no, then the points remain at 25
If the answer is yes and you can tell me how, then I'll up the points to 100