Fastest way to access VB6 String in C#
- by Simon Woods
Hi
I am using COMInterop. I have a call in VB6 which returns a string of roughly 13000 chars. If I execute the call in pure VB6 it takes about 800ms to execute. If I execute it via c# and COMInterop it takes about 8 seconds. I'm assuming the delay is caused by marshalling.
If I am correct about marshalling, I'd be grateful if someone could…