Click here to Skip to main content
15,915,864 members
Home / Discussions / COM
   

COM

 
AnswerRe: Multi threading in c++ Pin
Jürgen Jung1-Jul-07 21:26
Jürgen Jung1-Jul-07 21:26 
QuestionHow to Deploy Presentation Layer and COM + in two servers? Pin
Sylvester george27-Jun-07 19:04
Sylvester george27-Jun-07 19:04 
Questionverify MS Index server from code Pin
kaushik_Manoj26-Jun-07 18:47
kaushik_Manoj26-Jun-07 18:47 
QuestionWhy TLS(Thread Local Storage) can not be used in COM Pin
jsjwql26-Jun-07 16:58
jsjwql26-Jun-07 16:58 
AnswerRe: Why TLS(Thread Local Storage) can not be used in COM Pin
Roger Stoltz27-Jun-07 1:56
Roger Stoltz27-Jun-07 1:56 
QuestionSQL XML 3 BulkLoad Error Pin
Panchal Hardik25-Jun-07 2:29
Panchal Hardik25-Jun-07 2:29 
AnswerRe: SQL XML 3 BulkLoad Error Pin
Dave Kreskowiak25-Jun-07 4:05
mveDave Kreskowiak25-Jun-07 4:05 
QuestionCatching events from C# COM in VC++ client Pin
Gakk22-Jun-07 3:57
Gakk22-Jun-07 3:57 
QuestionProblem with dll file Pin
Natarajasivan22-Jun-07 0:45
Natarajasivan22-Jun-07 0:45 
Question"Server busy" since changed to VC2005 SP1 [modified] Pin
howieh21-Jun-07 20:47
howieh21-Jun-07 20:47 
Questionadd Activex Object Pin
dhatchu21-Jun-07 16:27
dhatchu21-Jun-07 16:27 
QuestionPrinterProperties Pin
moon_stick21-Jun-07 5:46
moon_stick21-Jun-07 5:46 
AnswerRe: PrinterProperties Pin
moon_stick21-Jun-07 22:41
moon_stick21-Jun-07 22:41 
QuestionStateable Web application using COM+ Pin
Babak Ansari19-Jun-07 23:38
Babak Ansari19-Jun-07 23:38 
QuestionReleasing a com interface Pin
john563219-Jun-07 18:31
john563219-Jun-07 18:31 
AnswerRe: Releasing a com interface Pin
Steve S20-Jun-07 1:49
Steve S20-Jun-07 1:49 
AnswerRe: Releasing a com interface Pin
Erik Midtskogen20-Jun-07 12:36
Erik Midtskogen20-Jun-07 12:36 
QuestionDifference between COM and DLL Pin
Karismatic19-Jun-07 1:24
Karismatic19-Jun-07 1:24 
AnswerRe: Difference between COM and DLL Pin
Steve S21-Jun-07 2:05
Steve S21-Jun-07 2:05 
[Why the laugh?]

A DLL is a set of code packaged into a library which can be used by your application, but is limited to working "in-process". That means it's loaded into your EXE, and has the same access to the memory allocated to the process as any of your other code. Similarly, it runs with the same privileges and user identify that your process does.

A COM component (or object, if you will) on the other hand, is a package of code which can be used by your (or any COM-aware) application, possibly even script hosts (VBScript, JScript) if the component implements the necessary supporting functionality. It provides mechanisms for working across process and machine boundaries, and allows (well, insists, sometimes) the configuration of security such that the component may execute under a different identity to the clients of the component. A COM object can implement or provide multiple interfaces, support aggregation, callbacks, and will implement lifetime management.

If your only exposure to COM is writing an ATL-based DLL, then it is not surprising that you haven't really appreciated the differences. Where I am (and where I was before) make heavy use of COM, COM+ and DCOM to implement a range of application servers (some of which are also services). None of them are 'network-aware', in the sense that there is no client code which deals directly with locating a component on a remote machine on the LAN and talking to it. COM/DCOM deals with all the plumbing issues, so you can concentrate on making the applications do what they are supposed to.

Many of these run 24/7, stopping only for software changes, and sometimes not always then!


Steve S
Developer for hire

AnswerRe: Difference between COM and DLL Pin
CPallini24-Jun-07 20:38
mveCPallini24-Jun-07 20:38 
QuestionProblem facing with connection points Pin
Raj Prathap17-Jun-07 21:05
Raj Prathap17-Jun-07 21:05 
AnswerRe: Problem facing with connection points Pin
HakunaMatada20-Jun-07 19:38
HakunaMatada20-Jun-07 19:38 
GeneralRe: Problem facing with connection points Pin
Raj Prathap20-Jun-07 21:52
Raj Prathap20-Jun-07 21:52 
QuestionConfused about queryinterface and cocreateinstance Pin
sawerr17-Jun-07 20:39
sawerr17-Jun-07 20:39 
AnswerRe: Confused about queryinterface and cocreateinstance Pin
cool_raja19-Jun-07 21:04
cool_raja19-Jun-07 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.