Solved

Can someone explain the Iunknown and Idispatch interfaces to me?

Posted on 2004-04-01
7
2,723 Views
Last Modified: 2013-11-25
In regards to visual basic, I would appreciate it if someone can explain these two interfaces to me...
I must communicate with a program and in the dev. manual it say's my program needs to implement these interfaces..But I don't really understand they're role

Thank you
0
Comment
Question by:EnolaKotrotsos
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 13

Accepted Solution

by:
crazyman earned 250 total points
Comment Utility
0
 
LVL 8

Expert Comment

by:plq
Comment Utility
They are base classes for ActiveX or OLE. IDispatch is the interface used for all COM objects, IUnknown is the base class for all OLE/Com/ActiveX components

You won't usually need to worry about these if youre communicating with a program that supports them, just create the class using createobject (or add it to your references and create using dim x as new class.class1)

What is the program you're looking at ?
0
 
LVL 1

Author Comment

by:EnolaKotrotsos
Comment Utility
a messagebroker of somesorts...I need to connect with it (and it needs to connect with my program)...

It states in the manual that my program needs to be able to implement these...I take it that
dimx as new gim.app means the same?

So, when it say's 'your program needs to be able to be able to implement IDispatch and IUnknown'  It means I need to be able to call an interface?

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 13

Expert Comment

by:crazyman
Comment Utility
It means that you objects must implement these interfaces, and by default VB will...
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
Any OLE based applications support these interfaces. VB is OLE based application...
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
PS. You don't even need worry about this. Just go to VB menu->Project->References->browse for external dll and choose this dll.
After this open ObjectBrowser (F2) and see all methods/properties of this dll.
0
 
LVL 1

Author Comment

by:EnolaKotrotsos
Comment Utility
thank you all for your time...crazyman, that was a very informative link you've send.
kind regards,
Marco
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now