OAF questions



Hi,

Is there any examples of using oaf?

What I want to do is to launch some applications i.e. gcalc or applets
i.e. geyes_applet.

And, of course, I want to "see" them on my desktop after I "activate"
them.

Here's the code that doesan't work yet..

--
#include <stdio.h>
#include <liboaf/liboaf.h>

int
main (int argc, char **argv)
{
  CORBA_Environment ev;
  OAF_ActivationContext ac;
  OAF_ServerInfoList *slist;
  CORBA_ORB orb;
  CORBA_Object obj;
  const OAF_ActivationID aid = "control_center";
  OAF_ActivationFlags flags = OAF_FLAG_PRIVATE;/* = OAF_FLAG_NO_LOCAL;*/
  OAF_ActivationID *ret_aid;

  CORBA_exception_init (&ev);

  orb = oaf_init (argc, argv);
  if ( oaf_is_initialized() ) printf("OAF initialized...\n");
  obj = oaf_activate_from_id (aid, flags, ret_aid, &ev);

  printf("That's all folks.\n");
  CORBA_exception_free (&ev);
  exit(0);
}
--




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]