Passing Arrays to a method in a COM server

Passing Arrays to a method in a COM server

I use Compaq VF 6.6B.
I developed 2 COM servers: ThermoProp.dll and zFlow.dll. I use them from Visual Basic, Matlab and Excel with no problems.

Now I would like to call ThermoProp methods from zFlow. I created an interface using the VF module wizard. I realized that in order to pass arrays as arguments I need to convert them into SafeArrays.
I created a test program and inserted the code from the SafeArray example which is provided with Compaq Visual Fortran.
I still get errors when compiling. I understand there is an incosistency in the variable types but I really cannot understand how to solve it and I could not find examples.
Can you help me?
Please find attached the code of my test program.
Thank you very much,
Best regards,
Piero

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Woops I forgot the files

Leave a Comment

Please sign in to add a comment. Not a member? Join today