home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: cs.utexas.edu!utnut!utinfo!news
- From: Norman Baccari <normb@gpu.utcc.utoronto.ca>
- Subject: Opening Libraries "Quietly"
- X-Nntp-Posting-Host: control3.utcc.utoronto.ca
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <DLzwBH.4Eu@utcc.utoronto.ca>
- Sender: news@utcc.utoronto.ca (News)
- Content-Transfer-Encoding: 7bit
- Organization: UTCC Campus Access
- Mime-Version: 1.0
- Date: Tue, 30 Jan 1996 13:04:29 GMT
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
-
-
- Two Questions...
-
- From what I understand, when calling OpenLib() this causes the
- library thats being opened to call its own init proceedure.
- I want to open the library to get Ver/Rev and id_string and
- quietly leave without affecting anything. When I do this now
- some libraries do there "init thing" and will try and run
- themselves. Toolmanager.library will do this and so does
- vmm.library. In an extreme case the system will crash on the
- OpenLib() as it does when the amos.library opened. Is there a
- way to get the info I want from any disk based library,
- quietly & legally?
-
- I also need to prevent "non libraries" from being opened. The
- library being opened is a user passed argument. If the user
- passed a file thats not a library then OpenLib() will crash.
- Can I interogate the file internally to detect if its actually
- a library that can be opened by OpenLib()?
-
-
- Thanks in advance....
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Norman Baccari normb@gpu.utcc.utoronto.ca Toronto,Ontario Canada
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-
-