By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,028 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,028 IT Pros & Developers. It's quick & easy.

COM or .NET

P: n/a
is COM used widely nowadys or is .NET the best thing to use nowadys?if yes
what type of applications is COM mainly used for developing?

what type of applications .NET not suitable for?

Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Technically you can use either of them for any task. Chances are that legacy
code would probably be using COM, in which case, you may want to continue
using that - though you could migrate partially to .NET and use COM-interop.
For new work, it may be smarter to use .NET - whatever anyone else says, COM
is for all practical purposes a soon-to-be-obsolete technology.

Also note that .NET is a lot simpler to use than COM. You'd find more
programmers comfortable with .NET than with COM. .NET apps are easier to
debug, deploy and support. You'd have access to the extensive BCL.

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
"Kenroy" <Ke****@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
is COM used widely nowadys or is .NET the best thing to use nowadys?if
yes
what type of applications is COM mainly used for developing?

what type of applications .NET not suitable for?

Nov 17 '05 #2

P: n/a
First, it actually depends on your purpose. Do you want to deal with
web services, database access, etc? Then use .NET. If you want to deal
with Internet Explorer, shell, and things that need _more_ control
overall, then use COM.

..NET today uses COM as well. COM is something Microsoft has been using
for years and almost everything is built on COM. It's sometimes painful
to deal with COM, but it's a strong architecture actually. It'll take a
long time to bury COM.

As far as I have examined, .NET (inluding 2.0) is not suitable for
applications reusing web browser control (e.g. where is NewWindow2
handler? Any doc explaining how to return/set external dispatch?). It
doesn't mean it's _impossible_ to write those applications in .NET, but
it means you need to write interop code, etc. to work with native COM
interfaces.

..NET, however, is great for web services and database applications, and
many more types of applications. There are only a few points, as far as
I know, where .NET needs a bit more, which are mostly those
COM-dependent cases. It's a great technology.

Ismail

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.