, P0 X& h6 D/ n1 z现在这个程序可以实现将1232这个数据发送到extend,extend有一个对话框弹出并出现1232这个数据,不知道这个对话框为什么会弹出并显示这个数据???( f/ W" t! c Y& W
此外我希望将这个数据赋给extend程序里面的一个变量,请问如何实现???? 9 O7 Q% t" Z' M B6 W ! p8 o6 k% c( l! A- Y( H( Y! q/ H( q
2.这是request的程序- y4 t$ N( W' w: \0 r1 J
// Request a value from Extend8 O$ K$ X c* O; }/ M5 D+ ?4 h
//) {; d3 |7 W8 m9 H3 P4 u5 D
// Initialize the variant that will hold the BSTR. Set the variant's- Z2 i' R5 G, ~* H! X1 c
// type flag to indicate the fact that this variant holds a BSTR. Place the3 A( V7 b3 h4 f
// BSTR into the variant structure.5 P' g' o' u# o! c" I
* W9 K& w- u9 t/ Z' A$ I9 A requestVariant = (VARIANTARG *)malloc(sizeof(VARIANTARG) *2);2 b$ b( V# h8 X; n
1 y$ p5 u3 g I+ m
itemStr = SysAllocString((WCHAR *) L"global0:#0:0:0:0:0"); 2 X6 _4 O% A, ~) X VariantInit(&requestVariant[0]); 7 n& G9 M' B3 e5 z _ requestVariant[0].vt = VT_BSTR; 2 ]( a( ^, H# u6 T5 w requestVariant[0].bstrVal = itemStr; ( U2 P- H. j. m) k, D! j2 X" X* Y; f$ W
topicStr = SysAllocString((WCHAR *) L"system");, G( V X+ G; U- U3 S6 P& r9 x$ ~
VariantInit(&requestVariant[1]); 0 c" p. Z7 w& V/ e4 v4 w/ ?
requestVariant[1].vt = VT_BSTR;3 \7 A1 N# l1 K
requestVariant[1].bstrVal = topicStr;6 v7 {$ g+ n3 O, \1 k
! |) h# Y( b; D; J; |* ^// Set the DISPPARAMS structure that holds the variant.! T) F/ b. w- W" _