If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Com

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-17-04, 20:26
samar samar is offline
Registered User
 
Join Date: Apr 2004
Posts: 11
Com

What are the main benefits of using an interface over a referencing a .dll file directly?
How many interfaces can a VB class support?
What are the types of COM compatibility supported by VB6 (IDE)? Briefly explain the differences.
Thanks in Advance...
Reply With Quote
  #2 (permalink)  
Old 05-17-04, 22:17
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
Quote:
Originally Posted by samar
What are the main benefits of using an interface over a referencing a .dll file directly?
How many interfaces can a VB class support?
What are the types of COM compatibility supported by VB6 (IDE)? Briefly explain the differences.
Thanks in Advance...
The main benefit of using an interface is that you don't need to write any code at all to use the functions exposed by the DLL. Since there is no code, if there are any changes to the DLL functionality you won't need to change anything in the classes code that uses the DLL.

A Visual Basic class can support two interfaces. One internal (to itself), one external (to other routines).

The com interfaces supported are VB, and disorganized or DCOM. The VB interface is suitable for supporting code written for a Virtual Branch (a tree structured form of distributed processing). The disorganized interface is suitable for dealing with spaghetti code written in other languages.

Just curious, but did you post the questions exactly as the instructor wrote them, or have you paraphrased them a bit?

-PatP
Reply With Quote
  #3 (permalink)  
Old 05-18-04, 19:13
samar samar is offline
Registered User
 
Join Date: Apr 2004
Posts: 11
Thanks a lot, exactly as asked to me.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On