The dllrname Command

VisualAge C++ provides a DLL rename utility, dllrname, that you can run from the VisualAge C++ command-line window. This diagram shows the syntax of the dllrname command:

The dllrname command has the following parameters:

module_names
This parameter is a list of the .exe file and all .dll files that use the DLL to be renamed. Make sure the list is complete so that all references to DLL name can be updated. The DLL being renamed must appear in this list as well as in the oldname=newname field. Separate the names with spaces. Each file must reside in the current directory, unless you include relative or absolute paths. For dllrname, file names are not case-sensitive. dllrname overwrite the files with modified versions.

oldname=newname
Oldname
is the DLL name change. Newname is the replacement name. The old name and new name must have the same number of characters. Do not include the file extension .dll. The new name must be a valid file name. Repeat this parameter for each DLL to be renamed.

options
You can any combination of the following options. Option names must begin with a slash, except /R, which can also be given as -R. You can specify options in upper or lower case.

For example, to rename the VisualAge C++ C multithread run-time DLL from CPPRMI40.DLL to MYLIBRRY.DLL and change all references to it in the modules myprog.exe and mydll.dll, enter the command:

dllrname myprog.exe mydll.dll CPPRMI40.DLL CPPRMI40=MYLIBRRY

Example Using dllrname



Repackaging VisualAge C++ DLLs for Distribution
Changing the Name of a DLL


Use the dllrname Utility


Run-Time Library File Names