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

Inquiring a module at runtime

rahzan
New Contributor I
650 Views
Is there a way to tell if a certain routine exists in a module at run time?

Tim
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
650 Views
A module? How can you even compile the code with a missing module?

If you mean a DLL, you could query its existence using LoadLibrary and then use GetProcAddress to reach its address and call it. See LOADEXP1 CVF sample or search this Forum for GetProcAddress.

Jugoslav
0 Kudos
rahzan
New Contributor I
650 Views
Yes I meant a module in a DLL.

Thanks for the lead on the sample,
I just found it myself too.

Tim
0 Kudos
Reply