Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

String IN from VB

rahzan
New Contributor I
802 Views
I have a com-server to a VBA client.
While I think that this worked once I am unable to pass a string from VBA with intent IN (w/ or w/o by ref) to the server. upon the call VBA gives an "Autiomation error(-1)" which I know means an interface problem.

Does anyone know what settings one should use in this case?

Thanks, Tim
0 Kudos
1 Reply
rahzan
New Contributor I
802 Views
Well I'm sure that this was NOT necessary before, but null-terminating the VB string solved the problem.

Use character(*)Intent IN without by Ref.

Tim
0 Kudos
Reply