fbpx
Wikipedia

ATL Server

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
Written inC++
TypeLibrary or Framework

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 edit

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:

{{handler ATLServerHelloWorld.dll/Default}} <html> <body> {{HelloWorld}} </body> </html> 

The first line of the file:

{{handler ATLServerHelloWorld.dll/Default}} 

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:

{{HelloWorld}} 

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 edit

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

External links edit

  • MSDN: ATL Server reference
  • ATL Server at CodePlex archive

server, technology, originally, developed, microsoft, developing, based, applications, uses, replacement, engine, written, render, pages, draws, existing, technologies, like, isapi, active, template, library, includes, template, library, which, dedicated, with. 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 ServerWritten inC TypeLibrary or Framework 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 editSRF 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 handler ATLServerHelloWorld dll Default lt html gt lt body gt HelloWorld lt body gt lt html gt The first line of the file handler ATLServerHelloWorld dll Default 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 HelloWorld 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 lt lt 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 editHello ATL Server A Modern C Web Platform InformIT September 29 2006 External links editMSDN ATL Server reference ATL Server at CodePlex archive Retrieved from https en wikipedia org w index php title ATL Server amp oldid 1189222752, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.