Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Passing Arrays to a method in a COM server

pierocol
Beginner
485 Views
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
0 Kudos
1 Reply
pierocol
Beginner
485 Views
Woops I forgot the files
0 Kudos
Reply