CompuServe Thread

#Quick Exec Query

3 messages in this thread
#113089From: Christopher R. HertelJul 15, 1990 7:56 PM
Quick question… I understand that exec.library is always open while the other libraries must be open with an explicit OpenLibrary() call and then closed with a CloseLibrary() call. Is there any case in which one would use OpenLibrary() to open exec.library? For instance, would one use OpenLibrary() to make sure that a certain version of exec.library were available? Is this ever done? Chris -)—–
#113200From: Khalid AldoseriJul 16, 1990 10:49 AM
Chris, I believe you can OpenLibrary() exec.library if you like. However, you can easily find out its version number by examing the ExecBase struct itself. i.e. Exec's version number is: ExecBase->LibNode.lib_Version Of course, you never actually _need_ to OpenLibrary() exec.library since OpenLibrary() itself is in exec.library, and wouldn't work if you didn't already know what ExecBase is… and that is what OpenLibrary() returns to you. (grin) Khalid.
#113539From: Christopher R. HertelJul 18, 1990 8:53 AM
Ok! Makes sense! Thanks for the info! Chris -)—–