Building a Dynamic Link Library
Also, before you begin this example, you need to compile and link a C or COBOL function into a Dynamic Link Library (DLL).
If you already have a function that you would like to practice with, you might prefer to substitute yours in place of our sample. Otherwise, build a new DLL, using the source files provided below. See your compiler and toolkit documentation for guidance on building DLLs. You should also refer to Programmer Reference for guidance on the compiler options required by VA Smalltalk.
For Windows:
If you are using VA Smalltalk for Windows, you can make minor modifications to the source code and create your own .def and .mak files, or you might prefer to use your own function in your own DLL. For an example of .def and .mak files for Windows, see Preparing images.
If you build these source files in a directory other than the directory where VA Smalltalk is installed, be certain that the include files or copybooks are in a directory that is in your INCLUDE or COBCPY path, respectively.
For your convenience, we have provided all the source files in the online version of this book, so you can copy them and do not have to retype them. When you paste the text into your editor, ensure that you remove any extra spaces, if necessary, especially in the make file and the command file. For the atm.cbl file, ensure it holds to COBOL column conventions.
After you have built the source files, you can proceed to Adding the parts.
 
Last modified date: 03/06/2021