wiechman@topaz.rutgers.edu (NightWalker) (06/29/87)
This group seems to be dealing primarily with Mac <--> Mainframe applications but perhaps someone might know? I am using Borland's Turbo Pascal to write a program using Appletalk. To say the least, the information included inside of the Turbo manual is minimal (how to include the code, what is defined, and copyright infringments). I have typed in the Name Binding Protocol code from Inside Macintosh Volume II (pp. 302 - 303) making it a procedure. All variable declarations are self-contained within said procedure. The only other change involved nbpNameBufSize which wasn't defined for TP. It is defined below as suggested by Han@Apple.UUCP. The code appears to work up until the extraction of returned information--Error -3104 {ExtractErr}. Han@Apple.UUCP thought that it should be as follows (His suggestion fixed an earlier hanging system problem on 512Ke's on a MacServe network when compared to a non-MacServe network, Thanks Han). The error now consistently appears each time it is run which is much prefered to a hung system: {from Vol. II p. 302} ... with myABRecord^^ do begin ... {old line: nbpBufSize := nbpNameBufSize;} {now the replacement} nbpBufSize := length(objstr)+length(typestr)+length(zonestr)+12; ... end; ... Any ideas, hints, or skeletons would be appreciated. Thanks in advance, Kevin -- Kevin S. Wiechmann "This posting is a figment of my imagination." arpa: WIECHMAN@RUTGERS.EDU
wiechman@topaz.rutgers.edu.UUCP (06/30/87)
>The code appears to >work up until the extraction of returned information--Error -3104 >{ExtractErr}. A little more clarification. This error is occuring during the very last if-then statement of the demo code. Again...Thanks in advance, Kevin -- Kevin S. Wiechmann "This posting is a figment of my imagination." arpa: WIECHMAN@RUTGERS.EDU