EQuestionAnswers.com Computer/Electronics Questions and Answers
C, C++, VC++, COM/DCOM, DLL and more
#Login #Sign up  Facebook Twitter TGoogle+

#Previous question #Index of COM/DCOM Questions #Next question

COM/DCOM and Automation

C/C++ and Java rely on vptr and vtable mechanism to deal with abstract classes or interfaces. However this is not true with scripting languages like VB/JAVA Script and VB. These languages do not have this mechanism. Thus co-class that implement only IUnknown is not sufficient for these languages. Additionally co-class has to implement all the methods of IDispatch to ensure compatibility with automation. Sometimes IDispatch also called dual interface as it both supports all methods of IUnknown and methods for automation. To support automation it has four additional methods named:

  • IDispatch::GetTypeInfoCount
  • IDispatch::GetTypeInfo
  • IDispatch::GetIDsOfNames
  • IDispatch::Invoke
In automation, clients are written in VB/VB Script/Java Script etc. These languages does not use late binding or dynamic binding or vptr/vtable mechanism to deal with abstract methods. Here they use one mechanism called ID binding. ID binding assigns a unique ID or index number for each method in an interface. Client provides the method name by calling GetIDsOfNames(). It returns the ID of the corresponding method. Now client calls the method using Invoke() by providing the method ID as an argument.

You have viewed 1 page out of 66. Your COM/DCOM learning is 0.00% complete. Login to check your learning progress.

 Vote 0

Similar topics related to this section

# COM DCOM Interview Questions and Answers :: ALL Interview .com
# COM DCOM - COM DCOM Interview Questions
# COM interview questions | TechInterviews
# COM Interview Questions - CodeProject
# Com Dcom Interview Questions - Com and Dcom in Asp Net
# ATL Interview Questions and Answers :: ALL Interview .com
# ActiveX Interview Questions and Answers :: ALL Interview .com

* #1 webmaster Wed 30 Apr/2014 08:37:17(GMT)  Like 0 Unlike 0

Dear Users,

We are pleased to inform you that a forum/blog has been incorporated with www.mybestnotes.co.in. You are welcomed to add your comments, requests, codes, solutions and feedback to it. Please login(if already a member) or signup(for free) to avail to this facility.


Your message goes here:

My Post:*
Secutiry Code: ******  *
Preview this compose before posting this in discussion forum.
  1. Use [Sxx] code to show smiles. Example [S02]
  2. Use [URL ], example [URL http://www.google.com/]
  3. To display code or un formatted text use [CODE] [/CODE]. Example: [CODE] printf("Hello world"); [/CODE]
 [S01]   [S02]   [S03]   [S04]   [S05]   [S06]   [S07]   [S08] 
 [S09]   [S10]   [S11]   [S12]   [S13]   [S14]   [S15]   [S16] 
 [S17]   [S18]   [S19]   [S20]   [S21]   [S22]   [S23]   [S24] 

Note: Only members are allowed, * fields are mandatory.