1 ]8 S6 Y% H. }" c) p现在这个程序可以实现将1232这个数据发送到extend,extend有一个对话框弹出并出现1232这个数据,不知道这个对话框为什么会弹出并显示这个数据???' s7 W5 G$ @1 G8 U' J1 u% R4 K
此外我希望将这个数据赋给extend程序里面的一个变量,请问如何实现????5 F& v4 _6 W2 }( L4 S
" W0 Z, {3 ?2 a4 E* w
' m N# q5 w; d6 B" l! n; G
2.这是request的程序 ! u* d3 L& |5 `$ h; F) n// Request a value from Extend % A$ _8 M6 p8 z6 L( r: o// 4 o* w3 V' T/ l. `6 x+ k+ |// Initialize the variant that will hold the BSTR. Set the variant's . |3 I. E7 l; a5 C3 V+ l// type flag to indicate the fact that this variant holds a BSTR. Place the5 m, y p y! f$ D
// BSTR into the variant structure. 1 W4 X" o" o! d G- q3 m* D) m5 O. U
requestVariant = (VARIANTARG *)malloc(sizeof(VARIANTARG) *2); 4 K+ l8 m; K9 m& e a, n' N5 d0 h4 q9 } ; N' d& N/ A" g% W3 J! X
itemStr = SysAllocString((WCHAR *) L"global0:#0:0:0:0:0"); : _9 T' P( _5 Q T VariantInit(&requestVariant[0]); % \ G* s. Q9 G; V# t requestVariant[0].vt = VT_BSTR;' m" j* }- k8 Q d) c
requestVariant[0].bstrVal = itemStr;3 J# p! B& g. C/ [8 s
( r& Z- ^# {* T( v
topicStr = SysAllocString((WCHAR *) L"system");6 O. W- @* Z5 c- D( m5 c0 z
VariantInit(&requestVariant[1]); . h) P$ p! e/ E) {" y
requestVariant[1].vt = VT_BSTR;* T' a" M1 T Z# _
requestVariant[1].bstrVal = topicStr; * { k6 u) }; b' @! a2 M- f/ |7 D) d/ J
// Set the DISPPARAMS structure that holds the variant.0 F' n ^1 P, K+ M; w; O# z5 O