Active X DLL in VB.Net

Posted on
To create  an energetic x  dll in vb.web 

AIM—  To create  an energetic x  dll in vb.web .

THEORY

Energetic x is a expertise utilizing which we are able to create person outlined controls .it isn’t a programming language however relatively a algorithm for a way functions ought to share information. an energetic x may be developed in quite a lot of languages together with c,c++,vb or java .

energetic x elements –it’s a normal time period that consists of three varieties of projects –

a) energetic x  dll.

b) energetic x  exe.

c) energetic x  controls.

ACTIVE X DLL—a dynamic hyperlink library project permits you to create your individual sort library.

you may create your individual library of courses in a project ,compile it to a dll , then reference the dll from different projects to make use of the performance (name strategies and properties )of the courses your dll incorporates .the principle benefit utilizing a dll is code reuseability ,compile your courses in a dll ,then reference that one dll from as many functions as you want.

ACTIVE X EXE—an activex exe acts in a manner like a normal exe, however it must be registered to run (like all different activex objects )and like an activex dll it exposes courses that purchasers can create and use .

there’s a large distinction between activex dll and exe. the dll is an in-proc server , that’s it runs in the identical reminiscence house . of the principle software ,in contrast to the exe that may be a out-proc server and therefor runs in its personal reminiscence house (it’s principally one other software working)because of this it’s a lot quicker to name a dll , as a result of there  is not any marshalling  of information between two  processes .

sometimes activex exe are used to create home windows “servers “ that may run domestically or remotely in one other pc .

ACTIVE X CONTROL –an energetic x management can be a server software that exposes its performance by an interface consisting of properties , strategies &occasions

an energetic x management is much like java applet .in contrast to java applets nonetheless , energetic x controls have full entry to the home windows working system .this offers them rather more energy than java applels however with this energy comes a sure danger that the applet could injury .software program or information in your machine . to manage this danger ,microsoft developed a registration system in order that browsers can establish and authenticate an energetic x management earlier than downlpoading it.

energetic x controls present the identical performance as dll and axes however are extra firmly built-in to the language they usually have a visual interface .then again energetic x dll and activex exe are written code consisting of courses &strategies.

  PROCEDURE

1) open visible fundamental ide. create a brand new project of sort class          library giving it an acceptable title .

2) write the mandatory code and create courses for the project.

3) save the project & shut it.

4) create a brand new project(home windows software).

5) add the previousp roject as a reference to the brand new project.

6) use the objects oftype classlibrary.class in your project.

APPLICATIONS—

1) show numerous varieties of gauges and indicators.

2) show information in grids .

3) ship and obtain faxes.

4) play audio show vidieo.

5) scan bar codes.

6) show calenders.

CONCLUSION—we  have  efficiently created an energetic x dll  software and is working positive,displaying all of the strategies and properties for the item variables.

Supply projectgeek.com