|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ66783341
$ C$ | V- L( c% Q
# Y& i, s4 z# e& E9 \int do_it( char *param )
0 U) n8 R- Q5 A. F{$ S" ^2 S) {, w7 G' a3 Z
int errorCode ;
5 j% B: \! [1 @, R UF_MOM_id_t mom ;1 f4 m3 @8 J( u, |, R' a( I
void *interp = NULL ;
% M2 ]3 H$ `9 T: T# s, }( A
; J* U) R c# w3 _* T: Y* i% f /* Get the TCL interpreter id from the ufusr param */
0 n0 |1 k* r/ W- B# B errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );+ ^( K3 c, P/ S0 M" O* U
if ( 0 != errorCode ) { g/ k) G( e" P x$ s5 o4 Y+ D2 ^! I
UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);
" L. G7 T9 c7 V7 h/ e8 e6 ~ return(-1) ;+ e' F+ Y+ m7 {. Y' r- I* `' K% O
}
# @5 V3 t# [9 @2 p9 L8 K3 \4 f i2 ^, x( N( q
/* Get the MOM id from the ufusr param */
( i7 d. m! C* `1 K8 {1 p! F2 C errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;
+ O, I* V0 h/ x5 [- J if ( 0 != errorCode ) {3 |) C9 V4 Z3 K0 H1 r$ H
UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);, m' o5 r/ ]) }2 `# W7 U9 v
return(-1) ;1 \5 G; t9 y, F ^. N
}
% y- V4 }3 Z; L( W& {( D( o: X' A: @5 m/ m4 w0 p: X
/ r1 \$ b7 \6 ?, b9 f% A errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ; o$ u# l8 O1 H/ A1 X% ?1 T
uc1601("TEST01", 1);
6 d+ Y2 @; c. N+ h; i8 d1 |- D if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);
5 p+ [3 j& X3 F( y( R# c4 I+ {/ E* t! x
return (0);( M, Y; c8 J4 h3 z
}2 K$ I: M# x: k( a' N
8 C& I. `+ b7 j- D7 L2 R' V5 ?# ` |
|