micString +micByRef limitations
I'm passing an empty string by reference to a dll function to fill it with diagnosis text -> works fine if the returned string is smaller than 255.
For larger strings QTP crushes -> ok, I reserve memory before passing to dll: String (5000, " ").
This works fine for 500 and 750 Bytes but crushes for writing more bytes.
It crushes even before dll call if I attempt to reserve 5000 bytes.
Does anyone know these limitations? Or even better to overcome these?
Hope I searched all relevant FAQs before posting it...
Re: micString +micByRef limitations
Its hard to say a limitation. There is a lot of stuff that goes into background for making a API call from VBScript and hence you are bound to limitations.
I would suggest to create a COM wrapper in Visual Studio 6/.NET and then call it in your QTP script.