Xref: utzoo comp.lang.pascal:3550 comp.sys.ibm.pc:51326 Path: utzoo!censor!comspec!humvax!becker!geac!jtsv16!uunet!tut.cis.ohio-state.edu!ucsd!usc!cs.utexas.edu!samsung!emory!mephisto!udel!sbcs!bnlux0!kushmer From: kushmer@bnlux0.bnl.gov (christopher kushmerick) Newsgroups: comp.lang.pascal,comp.sys.ibm.pc Subject: Wanted: format of binary file to link external routines in Turbo P 3.0 Keywords: Pascal, MSDOS, turbo 3.0 Message-ID: <1842@bnlux0.bnl.gov> Date: 5 May 90 16:26:05 GMT Followup-To: comp.lang.pascal Distribution: usa Organization: Brookhaven National Lab Lines: 36 I have a set of routines to drive my data translation D/A card. The routines are in binary format with a turbo pascal 3.0 interface. I want to convert to Turbo 4.0 or 5.0. The external declarations look like: funtion initialize : integer; external 'pcltp.bin'; function Terminate : integer; external initialize[3]; function selectBoard (...) : integer; external initialize[6] . . . When I dump pcltp.bin, I see a jump table followed by the code. So, two questions, 1 msdos, 1 turbo pascal MSDOS: what is the format of such a .bin file (Produced for example by exe2bin.exe ? Turbo pascal: How come turbo does not complain in the above example, when initialize, a function, is then referenced as an array? In general, if anyone can help me in thid conversion, I would appreciate it. there are a ton of msdos books out there. Which are the good ones? -- Chris Kushmerick kushmer@bnlux0.bnl.gov kushmerick@pofvax.sunysb.edu