?
Solved

What is different between COM and  ActiveX DLL ?

Posted on 2002-07-02
2
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Suggested Courses

801 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