Click here to Skip to main content
15,915,739 members
Home / Discussions / COM
   

COM

 
AnswerRe: help help help Pin
Brian C Hart30-Dec-05 23:26
professionalBrian C Hart30-Dec-05 23:26 
QuestionCan't bring to top a specific "Microsoft Word" window Pin
nadzzz8-Nov-05 4:50
nadzzz8-Nov-05 4:50 
AnswerRe: Additionnal Informations Pin
nadzzz8-Nov-05 5:06
nadzzz8-Nov-05 5:06 
Questionadd page in property sheet for property tab Pin
Maddie from Dartford7-Nov-05 17:18
Maddie from Dartford7-Nov-05 17:18 
QuestionDirectShow release of GraphBuilder Pin
douglasjordan7-Nov-05 12:17
douglasjordan7-Nov-05 12:17 
Question.NET to COM+ and vice versa Pin
Chals7-Nov-05 6:00
Chals7-Nov-05 6:00 
QuestionVS 2005 COM DLL issue Pin
pass_x0r7-Nov-05 2:12
pass_x0r7-Nov-05 2:12 
QuestionCOleDispatchDriver.InvokeHelper PROBLEM Pin
Ro_land7-Nov-05 0:16
Ro_land7-Nov-05 0:16 
Hi !

my problem is as follows:
I have a COM module ( COM_A) written in C++ which receives several [IN] parameters and returns [OUT] parameters.

One of the input parameters is defined as [in] VARIANT vArrIn.
One of the output params is defined as [out] VARIANT *dArrOut.
There is no problem when I make the call directly to the respective method !


The problem arises when I try to call COM_A by means of a second COM module (COM_B), which makes use of the COleDdispatchDriver class. When I call COM_A from within COM_B by invoking InvokeHelper, the call fails and the return code says something like : "stub received bad data ...".

I found out that :
1) If there is a normal [in]int parameter AFTER the [in]VARIANT vArrIn, , the call fails.
2) if I invert the order of the params [in]int iVal, [in]VARIANT vArrIn, the calls succeeds.

2)Anyway, it never succeeds when there is an [out] VARIANT *dArrOut after the [in]VARIANT vArrIn parameter.

Why is this happening ? Is it possible to do it this way ?
Can someone please shed a light on this. I tried out many different possibilities, including trying to define the [in]VARIANT as a pointer and to define the [OUT] VARIANT* array as [in,out], it all wouldn't help.

Please help , because I need to find a solution.
Thanks in advance,

Rubi


AnswerRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Lim Bio Liong9-Nov-05 23:37
Lim Bio Liong9-Nov-05 23:37 
GeneralRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Ro_land13-Nov-05 9:51
Ro_land13-Nov-05 9:51 
GeneralRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Lim Bio Liong13-Nov-05 23:26
Lim Bio Liong13-Nov-05 23:26 
AnswerRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Vi211-Nov-05 4:35
Vi211-Nov-05 4:35 
GeneralRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Ro_land13-Nov-05 9:43
Ro_land13-Nov-05 9:43 
QuestionIActveScript and events of run-time object Pin
De Nardis Andrea7-Nov-05 0:13
De Nardis Andrea7-Nov-05 0:13 
QuestionHow to init this VARIANT? Pin
Lane Yu6-Nov-05 7:12
Lane Yu6-Nov-05 7:12 
AnswerRe: How to init this VARIANT? Pin
De Nardis Andrea7-Nov-05 0:23
De Nardis Andrea7-Nov-05 0:23 
GeneralRe: How to init this VARIANT? Pin
Lane Yu7-Nov-05 1:19
Lane Yu7-Nov-05 1:19 
GeneralRe: How to init this VARIANT? Pin
De Nardis Andrea7-Nov-05 4:24
De Nardis Andrea7-Nov-05 4:24 
GeneralRe: How to init this VARIANT? Pin
Lane Yu7-Nov-05 6:56
Lane Yu7-Nov-05 6:56 
GeneralRe: How to init this VARIANT? Pin
De Nardis Andrea7-Nov-05 7:11
De Nardis Andrea7-Nov-05 7:11 
QuestionQuestion on launch/access permissions Pin
Steve S5-Nov-05 3:58
Steve S5-Nov-05 3:58 
Questionfatal Error occured in developing com component in c++ Pin
rkumar_mv4-Nov-05 19:45
rkumar_mv4-Nov-05 19:45 
AnswerRe: fatal Error occured in developing com component in c++ Pin
User 2155977-Nov-05 13:42
User 2155977-Nov-05 13:42 
QuestionProblem with OleCreateLinkToFile() Pin
Jürgen Jung2-Nov-05 22:48
Jürgen Jung2-Nov-05 22:48 
GeneralRe: Problem with OleCreateLinkToFile() Pin
Jörgen Sigvardsson3-Nov-05 6:36
Jörgen Sigvardsson3-Nov-05 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.