ATL COM server in c#

  • Thread starter Thread starter Manoj
  • Start date Start date
Manoj said:
Hi,
Is it possible to write a ATL COM server in c# ?
Thanks
Manoj

No. ATL is a template library for C++ only and obviously not usable from C#.
If you really need to author COM servers you should use VC++ with ATL.

Willy.
 
"Willy Denoyette said:
No. ATL is a template library for C++ only and obviously not usable from C#.
If you really need to author COM servers you should use VC++ with ATL.

Is there anything you could achieve doing this that you couldn't using
C# and EnterpriseServices?
 
Steve Walker said:
Is there anything you could achieve doing this that you couldn't using C#
and EnterpriseServices?

Could be, but that depends on what OP expects from ATL.
Agreed, if he needs to expose some business objects to COM clients, he could
go with C# the FCL and use EnterpriseServices to build a COM server.
But if he needs to build an ActiveX control or an OLE Automation server,
then ES and C# might not be an option.

Willy.
 
Could be, but that depends on what OP expects from ATL.
Agreed, if he needs to expose some business objects to COM clients, he could
go with C# the FCL and use EnterpriseServices to build a COM server.
But if he needs to build an ActiveX control or an OLE Automation server,
then ES and C# might not be an option.

Ah, of course, thanks. When people say "COM server", I automatically
think MTS/COM+/EnterpriseServices.
 
Back
Top