Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!sfalken@caen.engin.umich.edu From: sfalken@caen.engin.umich.edu (Steve Falkenburg) Subject: Re: Using MacTCP from Think C Qs Message-ID: <1991Apr4.081405.21665@engin.umich.edu> Sender: news@engin.umich.edu (CAEN Netnews) Organization: CAEN References: <1991Apr3.212555.20476@bronze.ucs.indiana.edu> Date: Thu, 4 Apr 1991 08:14:05 GMT In article <1991Apr3.212555.20476@bronze.ucs.indiana.edu>, cmcclary@bronze.ucs.indiana.edu (Charles McClary) writes: > > Anybody have any suggestions, comments, and/or warnings for using MacTCP > calls from Think C. So far, when I make the call to OpenResolver, it > returns -1. The File DNR.c is included in the project. > > Thanks, > Charlie > Change the #define's for the resolver commands at the beginning to long defines (i.e. 0L instead of 0). This should solve part of your problems. Also, you'll need to change all the occurences of "int" to "long" and remove typedef'd pascal functions (not supported in LSC). Otherwise _most_ things in MacTCP work. They should have done a better job with this, and hopefully, they'll fix it so it works out of the box in 1.1. -Steve Falkenburg ---------------------------------------------------------------------- Steve Falkenburg (sfalken@mondo.engin.umich.edu) | Great pate', but Macintosh Programming/Support | I've gotta motor! Computer Aided Engineering Network, U of Michigan | -Heathers