Category : Files from Magazines
Archive   : PJ64.ZIP
Filename : XHELLO3.C
#include
#include
#include
#include
#define STRING "Hello, World"
Arg wargs[] = {
XtNlabel, (XtArgVal) STRING,
};
main(argc, argv)
int argc;
char **argv;
{
Widget toplevel, label;
/*
* Create the Widget that represents the window.
* See Section 14 of the Toolkit manual.
*/
toplevel = XtInitialize(argv[0], "XLabel", NULL, 0, &argc, argv);
/*
* Create a Widget to display the string, using wargs to set
* the string as its value. See Section 9.1.
*/
label = XtCreateWidget(argv[0], labelWidgetClass,
toplevel, wargs, XtNumber(wargs));
/*
* Tell the toplevel widget to display the label. See Section 13.5.2.
*/
XtManageChild(label);
/*
* Create the windows, and set their attributes according
* to the Widget data. See Section 9.2.
*/
XtRealizeWidget(toplevel);
/*
* Now process the events. See Section 16.6.2.
*/
XtMainLoop();
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/