@Stefan, timovjl and all the others,
many, many thanks!
Now it runs also with the "ByRef" parametered DLL function.
I'll provide a zip file with the sample on my website and publish the link here. So I hope that you guys don't lose again time with this BSTR topic...
bye,
Volker