|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ66783341) ~0 V1 w7 b& |4 q; X
5 Y j' j' R7 ~! Q0 K/ u* eint do_it( char *param )
( N1 n% Y, F& H% p, s- o{
, v- B) [ P, ]7 O! x- O' g7 } int errorCode ;5 M/ V; o, x( m- }5 E! ]! w
UF_MOM_id_t mom ;1 L9 z4 W# c' w; |+ K
void *interp = NULL ;* M0 j& m/ E: l" i. ?+ j
9 i) {% e; r; s1 Y5 Z! g
/* Get the TCL interpreter id from the ufusr param */: N; ^" S: B6 ~2 L v8 q4 h
errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );& o9 z2 g* J: u. A C$ M3 |3 h2 ^
if ( 0 != errorCode ) {4 g" m: c* z0 J& e. }, R' e
UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);
" b) _4 q4 p) z" |9 C return(-1) ;
. Y5 U. s8 R0 G$ }+ m, [+ C }4 `' k8 L- g/ u$ }
/ l- P/ B1 j8 |3 I
/* Get the MOM id from the ufusr param */
$ I! v+ A- _! ?3 J5 t' w; j, R errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;
$ j) ^+ }3 [/ t8 b+ s if ( 0 != errorCode ) {
; G) J( L/ K0 \% p4 ] UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);
; a9 e* F( Z! ]1 z9 Q7 v return(-1) ;
- C+ P0 _, f! w }
1 G: j- |( P; A8 U( \2 J* u
; ~2 R! G# |' G, Y0 e- a: f; H3 r5 O) O8 A% U7 l* U
errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ;
( `! d2 ?1 W* {/ k$ Z uc1601("TEST01", 1);6 J: O! I6 a( o5 @/ f
if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);
9 f( n- T) @6 x. t2 p, S& k4 l
6 x/ d- h) H* C4 O1 c' I8 T5 X: N" e return (0);
4 ]9 H, j7 z' N4 n6 \: D}" m0 V$ d. d% q: k& ?
9 m7 }, e9 J0 t! ?! l! M
|
|