473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What is the advantage of using .NET DLL instead of COM?

Hi,

I would like to know what is the advantage of using .NET DLL instead of
using COM DLL in my C# application...

Currently, I have two options, using .NET DLL or COM DLL

Besides .NET DLL is managed (more safe), I would like to know will I
gain performance when I call unmanaged COM DLL instead of .NET DLL in
my C# program?

THanks!

Nick
Nov 16 '05 #1
3 1523
Nick <ni*****@heha.net.tw> wrote:
I would like to know what is the advantage of using .NET DLL instead of
using COM DLL in my C# application...

Currently, I have two options, using .NET DLL or COM DLL

Besides .NET DLL is managed (more safe), I would like to know will I
gain performance when I call unmanaged COM DLL instead of .NET DLL in
my C# program?


Using COM would involve marshalling for each method call. A few things
may be a bit faster in unmanaged code, but for the most part keeping it
all managed would be a lot simpler - and easier to debug!

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Hi Nick,
I dont quite understand your escenario, are you saying that you have the
same functionality implemented both in managed (.net ) and unmanaged
versions?

if your client ( app that will use the dll ) is managed you should use the
..net version for the simple reason explained by john

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Nick" <ni*****@heha.net.tw> wrote in message
news:ug**************@TK2MSFTNGP11.phx.gbl...
Hi,

I would like to know what is the advantage of using .NET DLL instead of
using COM DLL in my C# application...

Currently, I have two options, using .NET DLL or COM DLL

Besides .NET DLL is managed (more safe), I would like to know will I
gain performance when I call unmanaged COM DLL instead of .NET DLL in
my C# program?

THanks!

Nick

Nov 16 '05 #3
thanks all

nick

Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi Nick,
I dont quite understand your escenario, are you saying that you have the
same functionality implemented both in managed (.net ) and unmanaged
versions? Yes

if your client ( app that will use the dll ) is managed you should use the
.net version for the simple reason explained by john

cheers,

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
7
by: Jonathan Fine | last post by:
Giudo has suggested adding optional static typing to Python. (I hope suggested is the correct word.) http://www.artima.com/weblogs/viewpost.jsp?thread=85551 An example of the syntax he proposes...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
58
by: Larry David | last post by:
Ok, first of all, let's get the obvious stuff out of the way. I'm an idiot. So please indulge me for a moment. Consider it an act of "community service".... What does "64bit" mean to your friendly...
2
by: Samuel R. Neff | last post by:
What's the advantage of inheriting from CollectionBase as opposed to just implementing IList? It seems that it saves you from having to implement a few properties (Clear, CopyTo, Count,...
3
by: yinglcs | last post by:
I am reading the Boost scoped_ptr library, and I wonder what is the advantage of using that. Here is an example from Boost.org web site: #include <boost/scoped_ptr.hpp> #include <iostream> ...
13
by: Sarath | last post by:
What's the advantage of using for_each than the normal iteration using for loop? Is there any 'tweak' to use stream objects as 'Function' parameter of for_each loop. Seems copy function can do...
4
by: needhlp2 | last post by:
What is the advantage of using a pointer to a structure as a parameter to a funtion, instead of the structure itself? -the code is easier to read -it is more efficient because the structure is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.