Call funtions of COM from within VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had a COM component , which derived from IDispatch, so I could be used by
VB.NET(And yes, it could be used in VB6). but in fact I met with the
exception,
code was as following:
//////////////////////
Dim obj as new XXX.Obj
//////////////////////
error message was
QueryInterface for interface XXX.IObj failed.

I dont know why?
 
How are you referencing the COM componet in your VB .NET project, did you
use Add Reference?
 
I'd say that it's possibly that the COM component is dependant on another
component that hasn't been installed or registered?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top