|
我也是做这个联合开发的,最近遇到了点问题,可否请教一下,我的QQ66783341
# X. k- s: _4 J: z' n
' C! y- G% l; |5 P" U1 Fint do_it( char *param )4 Z j, b1 ^* R, q2 m% v ]3 z
{
* T* F% M# A, ]5 i int errorCode ;
1 I3 t# s# B2 \ e0 y UF_MOM_id_t mom ;
; T& ~9 _4 F: f+ _+ r void *interp = NULL ;
, j. s, u) ], C6 F
8 y0 B, ~9 |/ S' x$ `* o3 z /* Get the TCL interpreter id from the ufusr param */
$ y% l' s2 f$ G5 y0 |% M# ^ errorCode=UF_CALL( UF_MOM_ask_interp_from_param ( param, &interp ) );) B7 t9 O5 m& Z9 v( V- F5 N) J; J
if ( 0 != errorCode ) {4 d8 _8 H2 d% N' o' ?9 }9 v* P \
UF_print_syslog("Don't get the TCL interpreter id from the ufusr 'param'\nDLL terminated...\n",FALSE);5 ?3 R$ v$ W& W
return(-1) ;+ L* x0 x2 i0 P( @ p
}' N, p* B% v8 L1 D: ^. J K
5 S1 [; w7 }2 J' p+ y( V$ R b' L' E0 q: p0 L /* Get the MOM id from the ufusr param */
$ ?* X6 J2 l' B$ x9 }3 d errorCode=UF_CALL( UF_MOM_ask_mom (param, &mom) ) ;' f8 K! C1 E& x$ a7 {
if ( 0 != errorCode ) {
+ q/ i- C) B( e& {. Y: ?, O! u UF_print_syslog("Don't get the MOM id from the ufusr param\nDLL terminated...\n",FALSE);, c9 h- l6 p: n
return(-1) ;
. t( n9 `; c( X }
0 D5 A- B4 o. Z! B, c1 ]4 F$ `
$ a) D2 Z' G2 x$ X% V9 b$ f) S) g* v% _' W7 Q7 G6 Q
errorCode = UF_MOM_extend_xlator ( mom , "MOM_proba", mom_proba ) ;" ~8 M7 _; C, w4 U' w
uc1601("TEST01", 1);
' } }' l: r) G L if ( 0 != errorCode ) UF_print_syslog("Don't get UF_MOM_extend_xlator ... MOM_ui_set_status \n",FALSE);
" k1 P# u' w ?7 V" n: R
3 h1 X) U" E7 g1 M" S return (0);
; {# d: F$ m0 t% A- B}
: F7 q# ]: K' _. W9 x* }. `' U2 Z+ n' t5 c
|
|