Software Archive
Read-only legacy content
17060 Discussions

How to call third party .dll from CVF 6?

Intel_C_Intel
Employee
354 Views
Hello, I need to call a external .dll (MQAX200.DLL) which is not wrote
by CVF. Learnt from the CVF documents I use Fortran Module Wizard and
select the "Type Library containing Automation information" then it
generated a .f90 (MQAX200.f90) file for me.

In the generated .f90 file I found many subroutines and functions, my
problem is how can I call this routines from a CVF program?

1. What project type should I use?
2. How do I include the MQAX200.f90 (generated by Fortran Module
Wizard) and the MQAX200.DLL (original third party .dll) into my
project.
3. In my fortran program how do I initialize the library and call the
routines? For example do I initialize by :

COMINITIALIZE("MQAX200")

! and call the routine by something like :
Call IMQQueue200_Put('my message here')
! "IMQQueue200_Put" is the subroutine name shown in MQAX200.f90.

Any directions are appreciate!

Thanks in advance.

SM Kwan
0 Kudos
0 Replies
Reply