RE: Can't communicate with COM server, QueryInterface Failed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: DGreen13 (dgreen13_at_community.nospam)
Date: 12/10/04


Date: Fri, 10 Dec 2004 00:39:05 -0800

Yes the late binding works, but the early binding doesn't.

I'm happy with my workaround and I've learnt a lot about interop in the mean
time.

Thank you very much for your help, I can now get on with the rest of my
project

Dave

""Peter Huang" [MSFT]" wrote:

> Hi
>
> Do you mean the late-binding via the InvokeMember will work, but if you use
> the early-binding then the com server will not work?
> If so, I think you are right, it seems that the Interop Assembly generated
> by IDE may not be correct.
>
> So far, I think you workaround is correct, that is to write the Wrap
> yourself.
>
> Hope his helps.
>
> Best regards,
>
> Perter Huang
> Microsoft Online Partner Support
>
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>



Relevant Pages

  • Re: Sorting only certain columns in datagrid
    ... but one good workaround is simply to cancel the sort event if ... > I'm binding a dataset to my datagrid at runtime, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Combobox showing first item??
    ... >I have used the feedback on this issue to remedy my comboboxes showing ... > the first item on the list when a new record is added to the binding ... I recently posted a workaround for what i can only guess deals with your ... Dim cm As CurrencyManager = _ ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Binding text boxes
    ... The workaround would work but I find it quite complicated because I'm ... Even better regards, ... > You can't have dots in dataMember, does not matter if you're binding to ... >> From: slm@xxxxxx (Sofi) ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Capicom envelopeddata.decrypt failing when content > 64k
    ... Maybe an implemention issue in your COM interop? ... the enveloped data is in binary format. ... > happenning for both the interop.capicom and a workaround ...
    (microsoft.public.dotnet.security)
  • Re: ActiveX component cant create object
    ... I'm new to Interop, but I suspect your issue is related to assembly ... To support late binding you'd need to include the attribute below on your ...
    (microsoft.public.dotnet.framework.interop)