Silverfrost Forums

Welcome to our forums

Using .MOD files in Fortran programs

6 Dec 2007 11:45 #2480

Hi Paul,

I tried the dll as well and it works quit well!

What I would like to know is how does the final program (release) knows where to find the dll? I would think that the program will first look in the current directory for the dll. But if more than one program uses the dll it would be better to have a central copy of that. If not in the current directory, how should I solve this?

Must I 'register' the dll somehow? I tried regsvr32 xml_parser.dll but get the message that the entry point was not found. What does this mean and how can I solve this?

Jacques

6 Dec 2007 12:55 #2481

Yes you can put the DLL in the local folder otherwise the usual place is C:\windows\system32 or its equivalent.

Basically any folder that is on the PATH environment variable.

6 Dec 2007 1:19 #2483

Hi Paul,

and what about the entry point that is not found when I use regsvr32?

Jacques

6 Dec 2007 5:20 #2484

You should not be using regsrv32 in this context.

7 Dec 2007 8:45 #2486

Hi Paul,

I understand the concept much better and also tested a dll and lib in a few projects with success. If one knows what to look for you find the information in the documentation.

From another topic https://forums.silverfrost.com/Forum/Topic/566 you mentioned to use EXTERNAL rather than a MODULE. There is however nothing the the documentation that explains the capability.

When should I use EXTERNAL or how should I decide wheter to use EXTERNAL or MUDULE?

Jacques

8 Dec 2007 11:29 #2487

These are standard Fortran keywords that you will find described in a Fortran text book.

10 Dec 2007 9:34 #2491

Hi Paul,

do you have any text books thsat you could recommend?

Jacques

10 Dec 2007 6:12 #2495

'Fortran 95 Explained' by Metcalf and Reid.

Please login to reply.