Suppose someone gives a VB dll file (component). How to use
that in an ASP file?



Suppose someone gives a VB dll file (component). How to use that in an ASP file?..

Answer / Irshad Ali

To use a VB DLL component in an ASP (Active Server Pages) file, follow these steps:
1. Save the VB DLL file on your web server.
2. Register the DLL so that it can be used by IIS (Internet Information Services). Open Command Prompt and navigate to the directory containing the DLL, then run the command `regsvr32 <DLL_filename>.dll`.
3. In the ASP file, you can create an ActiveX object that instantiates the DLL component using the CreateObject method:

```vbnet
Dim myComponent
Set myComponent = Server.CreateObject("ProgID_of_Your_DLL")
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP Interview Questions

Speaking of boolean data types, whats different between c# and /c++?

1 Answers  


whate is AutoEventWireup in .net ?

1 Answers   eXensys,


Define managed code?

1 Answers  


How do you make it so that code runs when the security system is stopping it?

1 Answers  


What are server-side includes?

1 Answers  


Who is asp in police?

1 Answers  


What is use of asp?

1 Answers  


Can be arrays resized by using the keyword redim?

1 Answers  


when we use ajax in.net

1 Answers  


6) Events in page life cycle?

1 Answers  


textbox has viewstate property,but it does not depend on its property to retain their data across page,Explain.

1 Answers  


Explain the difference between the value-type variables and reference-type variables?

1 Answers  


Categories