Using ITSystemNameList
The following excerpts from sysname.cpp illustrate
the use of ITSystemNameList.
- The Create() method creates the system name
list by looking into the sqlhosts file (on UNIX™) or from the registry entry
under the HKEY_LOCAL_MACHINE\Software\Informix\sqlhosts key
(on Windows™).
ITSystemNameList list; ITBool created = list.Create();
- The system name list is displayed by the ITSystemNameList::NextSystemName() method.
while (ITString::Null != (current = list.NextSystemName())) { cout << current << "\tALWAYS_DIFFERENT" << endl; last = current; }