Click here to Skip to main content
15,894,343 members
Home / Discussions / COM
   

COM

 
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 
AnswerRe: Confused about queryinterface and cocreateinstance Pin
Steve S20-Jun-07 1:46
Steve S20-Jun-07 1:46 
GeneralRe: Confused about queryinterface and cocreateinstance Pin
sawerr20-Jun-07 3:04
sawerr20-Jun-07 3:04 
QuestionCLSID Pin
Rose8116-Jun-07 16:14
Rose8116-Jun-07 16:14 
QuestionThird-party COM Pin
Gregory Mermoud16-Jun-07 14:27
Gregory Mermoud16-Jun-07 14:27 
QuestionDLL Registration Pin
Rose8116-Jun-07 2:21
Rose8116-Jun-07 2:21 
Questiontype library generation Pin
ttomanek14-Jun-07 21:53
ttomanek14-Jun-07 21:53 
AnswerRe: type library generation Pin
ttomanek15-Jun-07 3:04
ttomanek15-Jun-07 3:04 
QuestionExport to Excel via VB.NET 1.1 Not Working [modified] Pin
Brendan Vogt14-Jun-07 20:48
Brendan Vogt14-Jun-07 20:48 
AnswerRe: Export to Excel via VB.NET 1.1 Not Working Pin
HakunaMatada20-Jun-07 19:42
HakunaMatada20-Jun-07 19:42 
Questioncode for representing "Events" for a custom control in classic ASP Pin
MurtyINM14-Jun-07 19:59
MurtyINM14-Jun-07 19:59 
Questionwhy can't be CoCreateInstance after install to COM+ app? Pin
Chen Jiadong13-Jun-07 20:56
Chen Jiadong13-Jun-07 20:56 

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.