OAF questions
- From: Igor Borojevic - Sun Ireland - Central Test - Performance Test Engineer <Igor Borojevic ireland sun com>
- To: orbit-list gnome org
- Subject: OAF questions
- Date: Tue, 14 Nov 2000 19:48:42 +0000
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]