PORTTOOL.EXE

You can use the PORTTOOL utility (PORTTOOL.EXE) to port applications more easily. This utility finds locations in your code, such as references to certain API functions and messages, that are likely to need revision.

PORTTOOL utility is in the Samples\Sdk\SdkTools\Porttool directory on the CD, along with its source code. You can examine the source code to better understand how PORTTOOL works, or modify it and rebuild it for your own needs. You can download the utility and its sources from the PORTTOOL sample.

Use the following steps to start using the PORTTOOL utility:

  1. Run PORTTOOL and load a Windows 3.x source file.

  2. From the Search menu, select the SearchAPI option to search for problematic API functions and messages.

When a problem is found, a dialog box is displayed specifying the message or function and suggesting what change is needed. Although the porting tool is not intended to replace your primary editor, it does have basic editing capabilities (such as Cut, Paste, and Search).

PORTTOOL uses settings in the file PORT.INI to determine what items to look for.