请输入您要查询的百科知识:

 

词条 ATL Server
释义

  1. SRF files

  2. References

  3. External links

{{ Infobox Software
|name = ATL Server
|logo =
|screenshot =
|caption =
|collapsible =
|author =
|developer =
|released =
|latest release version =
|latest release date =
|latest preview version =
|latest preview date =
|programming language = C++
|operating system =
|platform =
|size =
|language =
|status =
|genre = Library or Framework
|license =
|website =
}}

ATL Server is a technology originally developed by Microsoft for developing web-based applications. It uses a tag replacement engine written in C++ to render web pages. It draws on the existing technologies like ISAPI and the Active Template Library, and includes a template library which is dedicated for use with developing Web-based applications.

ATL Server first appeared with Visual Studio .NET 2003. It was included in Visual Studio 2005 but is no longer supported since the release of Visual Studio 2008. Most of the ATL Server code base has been released as a shared source project on CodePlex, a Microsoft-run code sharing web site.

A typical ATL server application consists of at least one ISAPI extension DLL along with one or a number of Server Response Files (.srf) and their associated application DLL files which provide the application functionality.

SRF files

SRF files can contain a mix of HTML and script tags. SRF script tags are denoted by the {{ opening and }} closing braces.

A single SRF file may call code from a number of application DLLs. Similarly, a single application DLL may serve a number of SRF files.

The simplest SRF file must contain one or more references to application DLLs and one or more calls to a functions within those DLLs. A simple SRF file would look something like this:

The first line of the file:

is used to identify the DLL and the class that the SRF file will make calls to.

Within the file, function calls would look like this:

In the above case, the ATLServerHelloWorld.dll DLL contains a definition of a "Default" class as shown below:

[request_handler("Default")]

class CDefault

{
    ...       [tag_name(name="HelloWorld")]    HTTP_CODE OnHelloWorld(void)    {        m_HttpResponse << "Hello World!";        return HTTP_SUCCESS;    }

};

Note the use of the request_handler attribute on the class to identify that this is the "Default" class and also note the use of tag_name attribute to identify the "HelloWorld" method.

References

  • Hello, ATL Server: A Modern C++ Web Platform, InformIT, September 29, 2006.

External links

  • [https://msdn.microsoft.com/en-us/ie/exb5b09w(v=vs.94) MSDN: ATL Server reference]
  • [https://archive.codeplex.com/?p=atlserver ATL Server at CodePlex archive]

3 : C++ libraries|Web frameworks|Microsoft Visual Studio

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/23 0:29:34