Solved

What is different between COM and  ActiveX DLL ?

Posted on 2002-07-02
2
208 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

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