
The arrays are to be dynamically allocated to contain however much data is present in the file. The first block may have data to be read into array A1, the second block to be read into array A2, etc. It does not know a priori how long each block is, but the blocks are terminated by a line beginning with a -1 flag. My program needs to read data in from blocks deep inside of a sequential access file. The code works well if I generate an executable, however I am unsure how to solve this problem with underscore. Any help or prior experience regarding this would be greatly appreciated. However the external program that will be using the DLL does not recognize it, so the DLL export will have to be written as in (1). The code compiles and a dll is created which is great. !DEC$ ATTRIBUTES DLLEXPORT,StdCall,Reference,ALIAS:"User_Mod" :: _User_Mod (i.e. with underscore) (2) If I then try to change the export line to: (the reason is because the subroutine User_Mod is called elsewhere in the exported code). Usrmod.dll : fatal error LNK1120: 1 unresolved externals Usrmod.obj : error LNK2019: unresolved external symbol _USER_MOD referenced in function _CLASS_LABTEST_mp_RESULTTABLE. However, this gives an error from the compiler: !DEC$ ATTRIBUTES DLLEXPORT,StdCall,Reference,ALIAS:"User_Mod" :: User_Mod (1)

This is compiler version XE 4.0.0.103 on IA-32. I. My main subroutine that I want other applications to be able to access is called subroutine User_Mod(.). I have a problem when exporting code to DLL using the DLLEXPORT markup.
