


XtAppInitialize(3Xt)					 XtAppInitialize(3Xt)
X11R5									X11R5



NAME
  XtAppInitialize - initialize X Toolkit internals, create an application
  context, open	and initialize a display, and create the initial application
  shell	instance.

SYNTAX
  XtAppInitialize(_a_p_p__c_o_n_t_e_x_t__r_e_t_u_r_n, _a_p_p_l_i_c_a_t_i_o_n__c_l_a_s_s, _o_p_t_i_o_n_s,
  _n_u_m__o_p_t_i_o_n_s, _a_r_g_c__i_n__o_u_t, _a_r_g_v__i_n__o_u_t, _f_a_l_l_b_a_c_k__r_e_s_o_u_r_c_e_s, _a_r_g_s, _n_u_m__a_r_g_s)
      XtAppContext *_a_p_p__c_o_n_t_e_x_t__r_e_t_u_r_n;
      String _a_p_p_l_i_c_a_t_i_o_n__c_l_a_s_s;
      XrmOptionDescList	_o_p_t_i_o_n_s;
      Cardinal _n_u_m__o_p_t_i_o_n_s;
      Cardinal *_a_r_g_c__i_n__o_u_t;
      String *_a_r_g_v__i_n__o_u_t;
      String *_f_a_l_l_b_a_c_k__r_e_s_o_u_r_c_e_s;
      ArgList _a_r_g_s;
      Cardinal _n_u_m__a_r_g_s;

ARGUMENTS

  _a_p_p__c_o_n_t_e_x_t
	    If non-NULL, returns the application context.

  _a_p_p__c_l_a_s_s Specifies the class	name of	the application.

  _o_p_t_i_o_n_s   Specifies the command line options table.

  _n_u_m__o_p_t_i_o_n_s
	    Specifies the number of entries in options list.

  _a_r_g_c	    Specifies the number of command line arguments.

  _a_r_g_v	    Specifies a	list of	command	line arguments.

  _f_a_l_l_b_a_c_k_s Specifies a	null-terminated	list of	resource specifications, or
	    NULL.

  _a_r_g_s	    Specifies an argument list used to override	default	values.

  _n_u_m__a_r_g_s  Specifies the number of entries in the argument list.



DESCRIPTION
  The _X_t_A_p_p_I_n_i_t_i_a_l_i_z_e function performs	the following operations:

  oo++    Initializes the X Tookkit Intrinsics library by calling _X_t_T_o_o_l_k_i_t_i_n_i_-
       _t_i_a_l_i_z_e.

  oo++    Creates an application context by calling _X_t_C_r_e_a_t_e_A_p_p_l_i_c_a_t_i_o_n_C_o_n_t_e_x_t.

  oo++    Creates a set of	fallback resources by calling
       _X_t_A_p_p_S_e_t_F_a_l_l_b_a_c_k_R_e_s_o_u_r_c_e_s with _f_a_l_l_b_a_c_k_s	if it in non-NULL.

  oo++    Opens and initializes a display by calling _X_t_O_p_e_n_D_i_s_p_l_a_y	with a
       _d_i_s_p_l_a_y__n_a_m_e of NULL and	an _a_p_p_l_i_c_a_t_i_o_n__n_a_m_e of NULL.

  oo++    Calls _X_t_A_p_p_C_r_e_a_t_e_S_h_e_l_l with an _a_p_p_l_i_c_a_t_i_o_n__n_a_m_e of NULL,	a
       _w_i_d_g_e_t__c_l_a_s_s of applicationShellWidgetClass, and	the specified _a_r_g_s
       and _n_u_m__a_r_g_s.

  The _X_t_A_p_p_I_n_i_t_i_a_l_i_z_e function returns the ID of the newly created shell wid-
  get.	The modified values returned by	_X_t_O_p_e_n_D_i_s_p_l_a_y for _a_r_g_c and _a_r_g_v	are
  returned to the caller.  If _a_p_p__c_o_n_t_e_x_t is not NULL, the application con-
  text created by _X_t_C_r_e_a_t_e_A_p_p_l_i_c_a_t_i_o_n_C_o_n_t_e_x_t is	also returned.	If the
  display specified by the command line	cannot be opened, an error message is
  issued and the application is	terminated.

SEE ALSO
  _X_t_A_p_p_C_r_e_a_t_e_S_h_e_l_l(_3_X_t)	and _X_t_C_r_e_a_t_e_A_p_p_l_i_c_a_t_i_o_n_C_o_n_t_e_x_t(_3_X_t).

  _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e



















































