getTypeLibEventElements     package:SWinTypeLibs     R Documentation

_I_d_e_n_t_i_f_y _a_l_l _e_v_e_n_t _i_n_t_e_r_f_a_c_e_s _i_n _a _t_y_p_e _l_i_b_r_a_r_y.

_D_e_s_c_r_i_p_t_i_o_n:

     This function implements a heuristic approach to  finding all the 
     elements within a type library that are interfaces used to handle
     events from a DCOM event source.

     There are other approaches that may work better for different type
     libraries that use different conventions for identifying the event
     interface elements. Indeed, there are two versions of this
     function in the 'generate.S' file in the source of this package.
     By default, this function is invoked if the caller  of the
     top-level function 'generateInterface' does not supply the names
     of the event interfaces. One can use a different function and
     supply the element names in the type library returned from that as
     the value of the 'events' argument for 'generateInterface'. So in
     this sense, this is just the default function that one can
     substitute with more customized approaches.

     This function looks for all elements named Events. It then removes
     any elements named I*

_U_s_a_g_e:

     getTypeLibEventElements(lib)

_A_r_g_u_m_e_n_t_s:

     lib: the type library in which to look for event interface
          elements.

_V_a_l_u_e:

     A character vector giving the names of the elements in the type
     library that are event interfaces.

     This could usefully return the elements in the type library
     directly, rather than just their names.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang <duncan@wald.ucdavis.edu>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://msdn.microsoft.com/library> <URL:
     http://www.omegahat.org/RWinTypeLibs>

_S_e_e _A_l_s_o:

     'generateInterface' 'generateEventInterface'

_E_x_a_m_p_l_e_s:

     ## Not run: 
       # Load excel type library. Use minor version of 1 to get anything higher than that.
       lib = LoadRegTypeLib("{00020813-0000-0000-C000-000000000046}", c(1, 1))
       getTypeLibEventElements(lib)
     ## End(Not run)

