home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2607 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  59 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.utexas.edu!utnut!utinfo!news
  3. From: Norman Baccari <normb@gpu.utcc.utoronto.ca>
  4. Subject: Re: Opening Libraries "Quietly"
  5. X-Nntp-Posting-Host: control3.utcc.utoronto.ca
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <DM5tnz.3ur@utcc.utoronto.ca>
  8. Sender: news@utcc.utoronto.ca (News)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: UTCC Campus Access
  11. References: <DLzwBH.4Eu@utcc.utoronto.ca> <4er15u$8sf@iss1.neckar-alb.de>
  12. Mime-Version: 1.0
  13. Date: Fri, 2 Feb 1996 17:52:47 GMT
  14. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  15.  
  16. jochen@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN (Jochen Wiedmann) wrote:
  17. >Norman Baccari (normb@gpu.utcc.utoronto.ca) wrote:
  18. >
  19. >: From what I understand, when calling OpenLib() this causes the
  20. >: library thats being opened to call its own init proceedure.
  21. >: I want to open the library to get Ver/Rev and id_string and 
  22. >: quietly leave without affecting anything. When I do this now
  23. >: some libraries do there "init thing" and will try and run
  24. >: themselves. Toolmanager.library will do this and so does
  25. >: vmm.library. In an extreme case the system will crash on the
  26. >: OpenLib() as it does when the amos.library opened. Is there a
  27. >: way to get the info I want from any disk based library,
  28. >: quietly & legally?
  29. >
  30. >How about examining System("C:Version Sys:MyLib.library")? (Not the
  31. >best idea, of course, but does what you want.) You could still do
  32. >a OpenLibrary(), if the above call fails.
  33. >
  34. >
  35. >Bye,
  36. >
  37. >Jochen
  38. >
  39. I suppose I could do this to get the version string ($VER:) but I've
  40. found that not all libraries have a $VER: I've also found that the
  41. version within this string sometimes contains the version of the
  42. program calling the library, as opposed to the library version that
  43. would have been found by reading the LibBase->Version & 
  44. LibBase->Revision fields in struct Library. And even though
  45. VERSION is system DOS command, my program would have to rely on its
  46. existance and thats not allways gauranteed. Ya never know what a user
  47. is going to delete from his/her system. LoadSeg() will give me this
  48. but it doesnt provide me with a revision number, alas I still search...
  49. Thanks for your reply...
  50.  
  51. Norm
  52.  
  53.  
  54. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  55. Norman Baccari   normb@gpu.utcc.utoronto.ca    Toronto,Ontario Canada
  56. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  57.  
  58.  
  59.