#include <stdio.h>
#include <strings.h>
#include <X11/Intrinsic.h>
#include <X11/Xresource.h>
#include <Xm/Xm.h>
#include <At/Parameter.h>

#ifndef APP_DEF
#define APP_DEF "ptestresources"
#endif

main(argc, argv)
     int argc;
     char **argv;
{
  Widget shell, parameter;
  XrmDatabase test_database;
  Display *dsp;
  
  dsp = XOpenDisplay("unix:0");
  if (dsp == NULL) {
    fprintf(stderr, "Could not open display.\n");
    exit(0);
  }
  shell = XtInitialize(argv[0],"paramtest", NULL, 0, &argc, argv);

  test_database = XrmGetFileDatabase(APP_DEF);
  XrmMergeDatabase(test_database, &(dsp->db));

  parameter = XmCreateParameter(shell,"paramwidget",NULL,0);

  XtManageChild(parameter);

  XtRealizeWidget(shell);

  XtMainLoop();
}
    
  
