A question regarding how dll's are implemented in Visual Fortran.
We have a large global library of code that we would like to implement as a dll (this is a library being ported from VMS).
In standard Windows DLL's, my understanding is that applications that use the dll share the code (i.e. functions) exported by the .dll, but that each application gets their own copy of an data (i.e. variables) used by the DLL.
In Fortran dll's, is this the default case as well? For example, suppose that the dll exports a variable , say, an integer x. We would want each application to have it's own copy of x that could not be corrupted by x being set by another application. (I understand that we could share common blocks across processes, but in this case, we would want the opposite to take place).
I have looked through the Visual Fortran Programmer's guide, but find the description of dll functionality a little confusing. Also, are there any different calling conventions necessary when using a .dll written in Fortran? I wouldn't think so, but you never know..
Any help would be appreciated!