1
Answer

Comparison and Contrast Method in ASP.NET

Photo of Amit Maheshwari

Amit Maheshwari

13y
2.8k
1
hi,friends
Compare and contrast LoadLibrary(), CoCreateInstance(), CreateObject() and Assembly.Load() explain it?

Answers (1)

0
Photo of Vulpes
NA 98.3k 1.5m 13y
None of those functions are anything to do with ASP.NET as such though they can be called from it (using the Platform Invoke mechanism in the case of the first two).

Briefly:

* LoadLibrary is an unmanaged function which loads a dll into a process's address space.

* CoCreateInstance is an unmanaged funmction which creates a COM object using its Class Id (CLSID).

* CreateObject is a VB library function which creates a COM object using its Program Id (ProgID).

* Assembly.Load is a .NET method which loads an assembly at runtime.