Suppose we just choose an X11 window which is an XWorkStation object. Finally, we need a view object, namely TextItem. Select the needed header files. The HLU library header is always required. App, TextItem, and XWorkstation 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. This app object is of type NhlappClass . When we run this program, it will expect to find a resource file named tx01.res in the current working directory. Create an XWorkstation object.