Solved

What is different between COM and  ActiveX DLL ?

Posted on 2002-07-02
2
191 Views
Last Modified: 2010-05-02
What is different between COM and ActiveX DLL ?
Can I use VB to create COM ?

Any reference ?
0
Comment
Question by:j_script
2 Comments
 
LVL 1

Expert Comment

by:eeevans
ID: 7126054
My understanding is that ActiveX is simply a marketing term given to a COM component.  COM is the contract that is agreed upon when you either build or use a COM component.  You can either have an ActiveX DLL or EXE and it will either be in-process or out-of-process respectively.

Yes, you can create a COM component with VB6 quite easily by selecting one of the ActiveX EXE or DLL project types listed in the project types when creating a new project.

eeevans
0
 
LVL 2

Accepted Solution

by:
priya_pbk earned 100 total points
ID: 7126142
Yes, one can easily make a COM component in VB. As "eeevans" mentioned 'ActiveX' is the brand name given to COM in VB. One can make COM componenents in VB very easily.

To make a ActiveX DLL or ActiveX EXE, one has to choose that project from Vb, when he opens a new project.

ActiveX dll is called "In-process" because when you call a dll from your main application, it becomes a part of your main application and executes it. "In-process" are faster as compared to Out-of-Process" which run in separate memory area other than the main application. It is obviously slower since it has to make lot of memory tranactions with the main application.

Try these links to know more abt them:

1) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconinprocessoutofprocessservers.asp

2)http://65.170.180.23/technologies/com/05_component_location.html

I hope you get the picture!

-priya

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 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