|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ66783341
0 [, m, A* T0 Z/ p: z L% U
) X _3 ?- m0 X( v6 A! q% zint do_it( char *param )
' F$ |4 y4 k, i1 R{* g; I* v G7 @+ {* u
int errorCode ;$ u; R0 p! N$ q6 g* v& I ^6 e6 @
UF_MOM_id_t mom ;4 r( H+ |" R5 u! |
void *interp = NULL ;7 s& j$ a8 T3 U( S# G& b
( F4 f7 U/ C3 u3 T
/* Get the TCL interpreter id from the ufusr param */) J. T5 m) U" {) \9 \) Y1 G, _
errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );
: Q2 h- o+ o: m9 ]$ E if ( 0 != errorCode ) {
8 }8 v$ y, X( C( @ x UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);
" a2 T# B1 @& G4 c, v return(-1) ;
9 Y8 I+ a9 H3 f) h- Y! @" X }3 D2 F1 z* N8 R, b* }
8 _8 R4 x8 c9 ^! T0 e% ^ /* Get the MOM id from the ufusr param */% @, w8 Z7 }1 z
errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;" E, O7 p, w Y% F! H, d
if ( 0 != errorCode ) {3 y- F+ E/ \5 i* l
UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);
& _' ]8 E. ^$ ]6 \: e return(-1) ;
# |( n; j6 ^# _- I6 o7 ^! n }9 E3 ~4 G/ {8 Z5 f
: s3 `$ K2 k6 W9 K" I$ w& x+ W
errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ;' E& W9 ~' ?, B
uc1601("TEST01", 1);
- D: h! ~6 v% Q- U( {+ F9 t8 T7 S+ z if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);
5 \/ C0 p3 E% S$ I4 r" e6 J; w" @( @' V2 y1 U9 ?0 q s+ h
return (0);, Y0 }6 T0 \) [. o
} m0 r/ ]" {' m( K4 ]$ h" c
2 u: n1 ?8 j3 J3 K' b6 } |
|