🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3162

Re: Library Utility

#3162
From: Jim Howe
Date: Tue, 28 May 1991 13:41
37 lines
2579 bytes
In article <TOWFIQ.91May24142256@babyoil.FTP.COM> towfiq@FTP.COM writes:
>>>>>> On 22 May 91 15:41:37 GMT, jwh@bodwin.ifs.umich.edu (Jim Howe) said:
>
>Jim> Is there a utility available which will list the contents of a
>Jim> .LIB file showing the ordinal number of each function and the DLL
>Jim> where the function is found?
>
>Two things: 1) why do you feel you need the ordinal number, instead of
>just the name?  (I have only found a very limited set of cases where
>this is true.)  2) I would recommend using the EXEHDR utility, which
>is bundled with both Microsoft C 6.0 and the PM SDK.  Then you just
>type "exehdr <dllname>" and get a listing of all kinds of relevent
>information.  Alternatively, you can use the information provided in
>the <exehdr.h> header file to read in the DLL yourself.  
>

I am programming with Smalltalk V/PM.  In order to access certain
functions (mostly in DOSCALLS) the ordinal number is needed to
access the function.  The EXEHDR utility is not helpful for this
problem.  There are only a handful of functions whose names appear
in the DLL.  I've managed to use a hex editor on the os2.lib file
and figure out where to get the ordinal number for a function.  What
I haven't been able to easily figure out is what the best way would
be to dump the ordinal information from the os2.lib file into an
easily read format.  Someone has mentioned that the second part of
a lib listing shows the functions in ordinal order.  As long as there
aren't any gaps in the assignment of ordinal numbers examining this
list with an editor that shows line numbers would be one way to go.

You mention a file called 'exehdr.h'.  I have both the IBM PM Toolkit
as well as the Microsoft toolkit (version 1.2 for both).  I haven't
found the file you mention.  Where would I find this file?


James W. Howe			   internet: jwh@citi.umich.edu
University of Michigan             uucp:     uunet!mailrus!citi.umich.edu!jwh
Ann Arbor, MI   48103-4943         
Technical Details
Message-ID: <1991May28.134107.12639@terminator.cc.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!caen!umich!terminator!bodwin.citi.umich.edu!jwh
References: <1991May22.154137.7871@terminator.cc.umich.edu> <TOWFIQ.91May24142256@babyoil.FTP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!caen!umich!terminator!bodwin.citi.umich.edu!jwh
From: jwh@bodwin.citi.umich.edu (Jim Howe)
Newsgroups: comp.os.os2.programmer
Subject: Re: Library Utility
Message-ID: <1991May28.134107.12639@terminator.cc.umich.edu>
Date: 28 May 91 13:41:07 GMT
References: <1991May22.154137.7871@terminator.cc.umich.edu> <TOWFIQ.91May24142256@babyoil.FTP.COM>
Sender: usenet@terminator.cc.umich.edu (usenet news)
Distribution: na
Organization: University of Michigan, IFS Project
Lines: 37