ATL COM server in c#

W

Willy Denoyette [MVP]

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.
 
S

Steve Walker

"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?
 
W

Willy Denoyette [MVP]

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.
 
S

Steve Walker

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top