CauseWay loads DLLs when the program being loaded has references to external modules in the DLL. CauseWay searches the execution path for any DLL or EXE file (in that order) which has the proper internal module name. The module name is not used when searching. For example, a file named USEME.DLL contains a module named Spelling_Checker. The name of the module (Spelling_Checker) is set by the NAME option in your link file. If no NAME is specified, then the module's name will default to its file name without an extension. In this example, the module name would become USEME if no NAME is specified.
Following is an overview of the standard link file commands used to create DLLs. You may also refer to the Watcom Documentation for a description of these commands.
function_name allows you to make a symbol (function name) available to other modules. It should be declared as a public symbol so that the linker can export it.
IMPORT [local_name] module_name.function_name
IMPORT [local_name] module_name.ordinal
The local_name parameter is optional. It is the symbol which the importing program references the function by, i.e. the symbol declared as external. If no local name is specified, then function_name is used.
module_name is the name of the module that contains the function. It is not the file name. IMPORT module names are resolved by searching DLL and EXE files for the correct module name.
function_name is the symbol by which the function is known in the EXPORTing module, i.e. the symbol that is declared as public.
Go to Table of Contents