What is the difference between the .NET Applet control and ActiveX embedded in IE

I came across some articles on the Internet about .Net applets, and I was wondering how it differs from the activex control (created using the .NET language)? (clarify, this applies to applets that run inside a web browser)

(Difference: ActiveX elements written in .NET are called .Net applets?)

Are there any advantages to using one over the other?

Also, what does Microsoft refer to this technology? (A search on MSDN does not call anything called .Net applets!)

ps: from what I see, ActiveX controls must be registered by COM, while .Net applets are not. Additionally, on a web page, ActiveX controls reference their CLSID, while .NET applets seem to reference their full name (path, DLL name, namespace, and class)

+3
source share
3 answers

ActiveX - COM, , , IUnknown. IE , IObjectSafety. - , Ole, IDispatch, IOleObject .. CoCreateInstance(), , - . , AppId, .

IE. : CLR MIME filter, . , IE , - mime, CLR . CLR , , , . , .

:

: ActiveX , .CAB .INI , . ( DLL ATL/MFC ), . .net MIME, , ( -).

: ActiveX - , , , . LoRIE , , (. ).

Threading: ActiveX , , , . DOM, IHTMLxxx, GIT COM Marshalling . , .net , #. .

. IE/Shell , interop , Framework . . http://pinvoke.net, .

. . , , 3.x - . , .net 2.0, - .net 1.0 , . , IE Windows Shell . MIME .net , , .

+6

" ActiveX ( .NET)" ".NET-" " .NET, IE".

, .NET . :

.NET Common Language Runtime

+1

ActiveX elements do not have the same security restrictions than .NET applets, which can be an advantage or a disadvantage depending on what you want to do .. .NET applets are generally easier to develop, you create ActiveX using VB6 or C ++.

0
source

Source: https://habr.com/ru/post/1707477/


All Articles