* y7 X; B+ ]" N现在这个程序可以实现将1232这个数据发送到extend,extend有一个对话框弹出并出现1232这个数据,不知道这个对话框为什么会弹出并显示这个数据???, v/ I3 S C4 o1 e5 c
此外我希望将这个数据赋给extend程序里面的一个变量,请问如何实现????9 @: g/ k$ h/ m6 g& ?4 K
. `( s% F- }5 e4 s+ x
. Y* [0 \! |" H6 U# s% m6 e4 e2.这是request的程序 ( L! j2 P! X8 q0 Y, n H6 ?/ C// Request a value from Extend" U% p+ E- A3 o: G: ?8 M
// ( U* S: Q: g1 q5 z+ K// Initialize the variant that will hold the BSTR. Set the variant's 1 _" l5 t" c7 e( m- a// type flag to indicate the fact that this variant holds a BSTR. Place the $ _7 u8 }9 ~; O3 I; z ?( C// BSTR into the variant structure. 8 C- [3 M! e. g9 r8 D2 ~3 I5 h$ ?% u9 _2 b- x$ `9 V3 S* K3 H
requestVariant = (VARIANTARG *)malloc(sizeof(VARIANTARG) *2);& j! H8 P- |# L3 ?+ }# w$ t" ^
' e' z. F6 i5 P itemStr = SysAllocString((WCHAR *) L"global0:#0:0:0:0:0");1 ^7 u1 D. J7 v& L+ H: r- I
VariantInit(&requestVariant[0]); ( k; ]/ p, A$ b3 Y requestVariant[0].vt = VT_BSTR;8 [/ i) y$ i5 J
requestVariant[0].bstrVal = itemStr;8 @5 N9 c( ]! f3 N
9 t$ x7 r# Y& N
topicStr = SysAllocString((WCHAR *) L"system"); 1 c: }0 Y) ~( a+ y VariantInit(&requestVariant[1]); * b ~( M7 V1 L& G
requestVariant[1].vt = VT_BSTR; + R) |, Y v3 M; `, f requestVariant[1].bstrVal = topicStr;; t# W' r6 R4 n4 l8 c
5 @# x& b" f( I! b
// Set the DISPPARAMS structure that holds the variant.6 F2 j# m1 v, T; q
, D0 y8 I; J8 t/ K1 j9 E _- P dp2.rgvarg = requestVariant;" d. E( O! z0 {) Y; j8 b: l
dp2.cArgs = 2; # }9 ^; |, Z2 S# ^, [7 \/ k dp2.rgdispidNamedArgs = NULL; " P. k* ?7 e+ C* T" C% T5 w dp2.cNamedArgs = 0; * P7 B0 _3 o ?- [: o ! A- C) z; f4 M& M1 W( | var.vt = VT_EMPTY;7 P- E( S: ~3 R# I2 ]) \4 h% G