Advantages & Disadvantages of writing IE addons in .NET

若如初见. 提交于 2019-12-11 15:13:33

问题


Since i am a .NET developer, I am planning to write a IE addon in .NET. Does anyone here have experience with/in developing IE extensions in .NET that can share their knowledge?

Specifically i like to know about advantages & disadvantages of using .NET for this task in comparison to ATL COM.


回答1:


I'd rather say that advantages & disadvantages are not bound to IE addons but more to the programming languages and their platforms.

.NET:

  • It is easier and more safe then C++
  • Easy to create and program UI
  • Requires end user machines to have a specific .NET Framework installed (you can run your addon on compatible frameworks)
  • Uses more memory
  • Requires to declare WinApi functions and constants if you need them

C++ (ATL COM approach):

  • Uses less memory
  • Can be statically linked thus does not require .Net frameworks, Visual C++ runtimes, etc (in other words run everywhere)
  • Easy to call WinApi
  • Requires more knowledge and generally more tough then .NET
  • Awful UI editor (at least the built-in for ATL/MFC)

So if you are a .NET guy pay attention to compatibility with different .NET Framework versions. Other stuff is minor.



来源:https://stackoverflow.com/questions/16663603/advantages-disadvantages-of-writing-ie-addons-in-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!