Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!newshost.marcam.com!charnel.ecst.csuchico.edu!csusac!csus.edu!netcom.com!scot
From: scot@netcom.com (Scot Campbell)
Subject: Re: Help needed with Smalltalk V for OS/2 and DLL's
Message-ID: <scotD4uK9L.Fq0@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: <3j51b7$a5t@duke.cs.duke.edu>
Date: Fri, 3 Mar 1995 04:24:56 GMT
Lines: 12
Sender: scot@netcom5.netcom.com

amit@duke.cs.duke.edu (Amit Bagga) writes:

>...
>I have created a sub-class of DynamicLinkLibrary and added the class 
>method fileName which returns the name of the DLL file.  
>But, when I send the open method to this sub-class it always returns the 
>smallInteger "2" instead of returning a handle to the DLL.

 A return code of 2 from the open indicates that the library (or perhaps
an import within the library being loaded) cannot be found.  The ST/V
open can return either a handle to the library if the open was successful
or an Integer indicating the non-zero return from the open if it failed.
