Next, we need a workstation object in which to draw or write our graphical instructions. Suppose we just choose an X Window, which is an XWorkstation object. Finally, we need a View object, namely TextItem. Select the needed header files. App, XWorkstation, and TextItem are the objects we are going to use in this program.
C headers lists the headers for all objects.
Open and initialize the HLU library. Set the app dir to the current directory so the application looks for a resource file in the working directory. It returns the id in appid. This App object is of type NhlappClass. Its resources are initialized by the resource names and values contained in rlist.