Software Archive
Read-only legacy content

Optional DLLs

Intel_C_Intel
Employee
332 Views
Hello,
I have an application that needs to optionally use Fortran DLLs. That is, it needs to test for their existence, and run one way of they are present and a different way if they are absent. In my case, the DLLs would contain classified code that could be deleted to produce an unclassified version of a program.

The standard behavior of CVF 6.5 is to crash if all DLLs cannot be located at startup. How can I create "optional" DLLs for my code?

Thanks

Steve
0 Kudos
1 Reply
Steven_L_Intel1
Employee
332 Views
Didn't I answer this same question a few days ago? Oh, yes, I did...

The "standard behavior" you note is of Windows - CVF has nothing to do with it.

What you want is to use the Win32 API routines LoadLibrary and GetProcAddress. CVF provides a sample DLLLOADEXP1 that demonstrates this.

Steve
0 Kudos
Reply