Novell is now a part of Micro Focus

Autoload Modules in CodeWarrior

Articles and Tips: tip

Paul Hardwick
Novell, Inc.

01 Feb 2002


Have you ever wanted to automatically load required modules for your NLM but you have not been able to find the options in CodeWarrior to do this? Here's how.

First, if you are creating an NLM with the NetWare stationary and you choose "Generic NLM C" project, you will need to copy and add the "nlm.def" file to your project. Copy it from "\Program Files\Metrowerks\CodeWarrior\Stationery\NetWare\Generic NLM," put it in your project directory and add it to the project. If you have created a "Generic NLM" project, you will already have the "nlm.def" file included.

Edit this file and use the keyword "MODULE" followed by the names of the NLMs that you want to be autoloaded if they are not already loaded. These must be listed in reverse order to the order that they need to be loaded on the server.

Below is an example for loading clib and its required NLMs if they haven't already been loaded:

MODULE clib.nlm nit.nlm nlmlib.nlm fpsm.nlm requestr.nlm streams.nlm threads.nlm

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates