>If I'm not mistaken, this will only work if the DLL is
>build with the Auto-Increment option selected in the Build
>dialog
The array will be populated as long as there is at least one "file info" value populated for the file, and it works for any EXE/DLL. Obviously, if you didn't include version information in your DLL the array element will be empty.
For example, this works just fine for a system DLL:
lnx=agetfileversion(lArr,"c:\winnt\system32\adsiis.dll")