|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ667833411 f4 f& X5 |4 n0 v/ a
e E$ c) Y/ F v: ?0 lint do_it( char *param )2 o7 N# r1 [- o$ `) A
{
* F( }! Q" `! |+ Z! c int errorCode ;
3 e( l1 o5 i3 p UF_MOM_id_t mom ;1 O' f/ d7 e9 w
void *interp = NULL ;
! h) w$ y4 X+ t" k8 g* y$ i" p; q, G/ v6 h: n; P( V
/* Get the TCL interpreter id from the ufusr param */
' Z; V5 X7 B# Q! R9 U7 g& L# P$ ?5 S errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );
$ @; S$ f8 j* T* J) k5 f$ o5 B% t if ( 0 != errorCode ) {
5 H: D' Z6 g- P) ^& R4 e0 S UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);
; W2 |, x$ h. Z' I7 Q return(-1) ;
- B) H! F* Q0 D) \" x }, ]/ U5 K q! X8 P0 k( t
; m" r7 s: @! B5 _# W# g2 R
/* Get the MOM id from the ufusr param */( [5 b' ~5 j4 d: ], T
errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;. ~2 [7 }# ^: F" {3 J8 h; r( M
if ( 0 != errorCode ) {
" D6 ?2 g$ c* m- |( L4 z7 p' [! _ UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);1 J( h5 m6 e) x$ g9 s5 v2 C3 R, t3 q
return(-1) ;
( Y" J( _1 I, H1 C }
N) l- u. j& w& |. x6 x6 V! w! h8 s4 V; B
: }9 g8 t* T& J; `4 C- j1 V errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ;
" v' s* N' W- f4 L uc1601("TEST01", 1);* q/ c% c+ n& c4 j/ u2 z1 z
if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);
- Z( `; z1 ^. ^3 }2 c, w& J# N8 G5 v! c, ]6 M, r0 w* t& e
return (0);8 A- ]8 q- Y* }: o5 s! E
}
7 T4 T. U3 J! W+ ]2 F( |
' f. e% X2 e! e* i$ k# z8 F1 Q: u |
|