[futurebasic] Re: [FB] How to call InitOpenTransport?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2000 : Group Archive : Group : All Groups

From: Derek Smith <dereksmi@...>
Date: Fri, 17 Mar 2000 09:03:53 -1000
On Fri, 17 Mar 2000, Tsutomu Yano wrote:

>   How to use OpenTransport with FB^3?
> 
>   To link OpenTransportLib with My App, I wrote bellow:
> 
>   LIBRARY "OpenTransportLib"
>   TOOLBOX FN InitOpenTransport = SHORT
>   LIBRARY
> 
>   But An error occurs and drop into MacsBug. To check the existance of OpenTransportLib, 
> I have used an example in FB^3 CD named "Shared Library Listing". 
> 
>   But the program print on a window simple one line:
> 
>    `There is no library named "OpenTransportLib".'
> 
> 
>   So I have opened "Open Transport" (which is in the Extention Folder) with ResEdit and checked 
> all library name. Right, There is no library named "OpenTransportLib".
> 
>   To find the Library which have "InitOpenTransport" function, I have changed the sample "Shared 
> Library Listing" a bit, and list all EXPORTS in "Open Transport" file out. But I couldn't look "InitOpenTransport" anywhere.
> 
>   How to call "InitOpenTransport", and Which library can I use to call It?

You're correct, no such library exists.  The file with that name has
29(!) code fragments that contain library names.  You might dig thru there
and look for something like OTClientLib or similar.  The 'cfrg' is where
the actual library names are stored.  You'll probly need resourcerer in
order to view the cfrg.

-Derek