Re: How to Send Multiple UDTs via Connection Point

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 12/08/04


Date: Wed, 8 Dec 2004 14:33:04 -0800

Good, I didn't scan it as far down...

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Dennis Vansickle" <DennisVansickle@discussions.microsoft.com> wrote in 
message news:CF49D811-95DF-4351-8F9C-83289A281B2E@microsoft.com...
> Alexander,
>
> Thank you.  I found the problem thanks to this.  I took a closer look at 
> the
> DISPPARAMS and found that I had the incorrect value for the cArgs.  I was
> sending 1 instead of 2.  My fault for doing a quick copy & paste of the 
> other
> implementation.
>
> // WRONG
> DISPPARAMS disp = { pvars, NULL, 1, 0 };
>
> // CORRECTED
> DISPPARAMS disp = { pvars, NULL, 2, 0 };
>
> Thanks again.
>
> Sincerely,
> Dennis
>
>
> "Alexander Nickolov" wrote:
>
>> You forgot to reverse the order of arguments in the
>> DISPPARAMS array.
>>
>> -- 
>> =====================================
>> Alexander Nickolov
>> Microsoft MVP [VC], MCSD
>> email: agnickolov@mvps.org
>> MVP VC FAQ: http://www.mvps.org/vcfaq
>> =====================================
> 


Relevant Pages