MSJ DLLCODE: Designing an OS/2 Dynamic-Link Library
PSS ID Number: Q42224 Article last modified on 04-16-1991
MS-DOS | OS/2
Summary: The following is a summary of the program found in the “Microsoft Systems Journal” and in the Software/Data Library: Issue: May 1988, Volume 3, Number 3, pages 27-48 Title: “Design Concepts and Considerations in Building an OS/2 Dynamic-Link Library” Author: Ross M. Greenberg Keyword: DLLCODE DLLCODE can be found in the Software/Data Library by searching on the keyword DLLCODE, the Q number of this article, or S10073. DLLCODE was archived using the PKware file-compression utility. DLLCODE contains the code listings for DLL_CHAT, DLL_LIB, and CHATMEM. The following information describes each of the files included in DLLCODE:
File | Description |
---|---|
DLL_CHAT DEF file | Module definition file for DLL_CHAT.C. |
DLL_CHAT.C | This is the main body of the CHAT program; it |
interfaces with and calls a DLL (CHATLIB). | |
CHATLIB DEF file | Module definition file for CHATLIB.C. |
CHATLIB.C | CHATLIB.C is a DLL. When it is used with the |
CHAT program, it acts as a central repository | |
for all messages being passed. | |
CHATMEM.C | This file contains the following functions: |
allocation of memory, deallocation of memory, | |
and the getseg() call. |
The following text is taken from the cover of the “Microsoft Systems Journal”: Dynamic-link libraries are among the most valuable facilities of OS/2. They permit multiple applications to share only one copy of a function. This article provides programmers with a road map that demonstrates that writing a dynamic-link library is not as complicated as it may seem at first glance.