|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ667833413 [9 H. [! v, ~2 w0 _$ J& A4 [
; C9 N' ?9 a1 \- w; Kint do_it( char *param ): l. f7 Z5 m! o' w7 B
{% I! N7 R3 K2 F3 M
int errorCode ;
' m. h# L1 z( f N7 K8 ?& {4 [ UF_MOM_id_t mom ;
. o p( y) }0 N0 g void *interp = NULL ;
% J4 L) @! k' U; P) G9 S9 [" E) Y) V
/* Get the TCL interpreter id from the ufusr param */
, _ u8 | [6 x8 K' w errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );5 O$ o" _' [0 j
if ( 0 != errorCode ) {
/ S, q$ P( X6 |5 ?, L& o UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);
! X" p9 `4 j. b- L) k6 H; B return(-1) ;4 E q2 V$ A9 f8 M f/ K
}
' u3 `. v; K* D. o+ T
) Z) d3 n4 Y8 u& ^3 L4 g- u+ k9 y. X /* Get the MOM id from the ufusr param */
0 h$ _( i0 B) d- y" w7 A errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;: r+ L6 ?0 b& d" q* g
if ( 0 != errorCode ) {+ p0 K+ T% _9 Q6 h1 o# h7 i
UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);
5 e2 r7 v: R8 i) E# ?( Y5 r return(-1) ;
, d9 p5 z" N/ Z' Z }1 ^, b. q5 V _3 }* O) q" w
0 B. [+ t% m. d w
3 m9 O$ [% n' t/ L c
errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ;
" e' O& s- y! a1 {2 R B1 K( h uc1601("TEST01", 1);
; d- `5 W. _* ?$ z' j n% L% g if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);7 A! \/ C! e0 k; G, c! N
& j2 ]9 Q9 P. z9 j0 G
return (0);
0 N% b0 \2 M1 [# L) q0 V9 |" `7 D}7 _: U3 t2 H5 z' R, M9 g q6 n+ J( q
7 ~; I0 F( [! x6 E" u# ]' y |
|