|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ667833415 z+ ]! S1 I9 C% J
3 {$ ~5 T1 Q% e( L6 h# L( v Sint do_it( char *param )
! D/ M( y% I: e/ P( k( `( o{
5 ?2 t8 q1 \8 R& k. Y4 w int errorCode ;
Q m5 r: |7 s8 E9 D9 J# e3 b; j. H3 Q UF_MOM_id_t mom ;
0 e9 @$ r, j. p void *interp = NULL ; }) A5 u" ~1 n' t a
8 I$ p* ?4 A& g/ ]; l+ K0 L /* Get the TCL interpreter id from the ufusr param */2 b- H; `5 F5 L2 f) j7 Y7 i) }
errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );2 [9 q8 D/ G" W2 j3 R
if ( 0 != errorCode ) {6 k9 t! F, E% ]8 g; K: }
UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);7 B- ?/ g) V' D- K
return(-1) ;
B* K0 ~' E4 ?1 p2 R }7 p) X1 ?( T8 z: b+ G
: f. T4 |8 \' `# t /* Get the MOM id from the ufusr param */% [! z O% U* u- i3 B% Y( k# j p" v8 F
errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;: U4 W2 v& T0 D \) w U
if ( 0 != errorCode ) {/ B: S5 Q0 R) Z4 H
UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);: C1 s4 r3 @$ I5 A4 j, q
return(-1) ;( M% I8 K$ r5 l2 o0 p
}/ Q9 i4 ~3 ^0 Q3 t7 h+ J% F
# F) ^, [; J: R8 `0 c
7 b8 n, S) w% ?& e; I errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ;2 E* e7 i2 v- F! t
uc1601("TEST01", 1);
, |- M( u4 u' ~% q: @ if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);) M2 t8 a2 v/ e5 ]! N. E7 V
1 q. ]/ X: e, m! H% s
return (0);: `/ v; u. O" V6 A
}0 {* O* {+ @- Q% B
& ^9 K. P+ r$ o
|
|