ASP closed into DLL file

Source: Internet
Author: User
ASP files as DLL files
When you create or use a complex ASP Web application, you must encounter a DLL that needs to be used. The DLL usually includes code, compiled in VB, C + +, or other Windows programming languages, for ASP applications.


Registering a DLL
Before you can start using code to reside in a DLL file, you must first register the DLL in the Windows Runtime Library. There are two ways to let Windows know about this new DLL.

Save the DLL to c:windows System32
Or

Manually register it to show RegSvr32 applications
The first choice is self-evident, but the second option requires a little more work. This is a quick how to register a DLL:

Find the location of your DLL. We will use C:inetpub wwwroot tizagasp MyDLL.dll in this example.
Click the Start menu and select Run
Enter Regsvr32.exe's "c:inetpub wwwroot tizagasp MyDLL.dll" (quoted)
You should confirm the message if successful, such as: "DllRegisterServer in C:inetpub wwwroot tizagasp myDLL.dll Success"
Use your DLL in ASP
Now that you have registered your DLL you need to know how to access features that are included in it. Let's assume that for this example the DLL file is called "MyDLL.dll" and the name and class are "MyClass".

To create an instance of this class you can use the Server.CreateObject method like this:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.