
DlgIpAddr, version -1.0
18 November 1999
Robert Dickau (robertd@installshield.com)

DlgIpAddr displays a dialog box containing a single IP Address control. (WARNING: Since the IP Address control is one of the new IE4 controls, the dialog box will probably not display on target machines without IE4+; in fact, it will probably crash.) To use the function, add

	#include "ipaddr.h"

to the beginning of your main setup.rul script, and add

	#include "ipaddr.rul"

to the end. (See the sample setup.rul provided for an example.)

The function's signature is DlgIpAddr(szTitle, szMessage, dwIP), where szTitle and szMessage are the input-only title and prompt for the dialog box, and dwIP stores the IP address used by the IP Address control; on input, dwIP contains the IP address to display when the dialog appears, and on output dwIP contains the IP address entered by the user. DlgIpAddr expresses IP addresses as a single number; to convert to and from the common "a.b.c.d" form, the functions MakeIpFromOctets and MakeOctetsFromIp are also defined in ipaddr.rul.

To use the dialog box, copy _IsUser.dll into the Setup Files pane of the IDE, and place ipaddr.h and ipaddr.rul somewhere InstallShield can find them, rebuilding the media before testing the dialog box.

Both InstallShield 6 and InstallShield5 styles are provided, with the InstallShield 6 style the default; to use the InstallShield5 dialog, change the line in ipaddr.h beginning

	#define DLG_TEMPLATE		DLG_IPADDR6

to

	#define DLG_TEMPLATE		DLG_IPADDR5
