В данном примере:
// TODO: Add additional tags to the replacement method mapBEGIN_REPLACEMENT_METHOD_MAP(CNonAttributedCodeHandler) REPLACEMENT_METHOD_ENTRY("Hello", OnHello)END_REPLACEMENT_METHOD_MAP()HTTP_CODE ValidateAndExchange(){ // TODO: Put all initialization and validation code here // Set the content-type m_HttpResponse.SetContentType("text/html"); return HTTP_SUCCESS;}protected:// Here is an example of how to use //a replacement tag with the stencil processorHTTP_CODE OnHello(void){ m_HttpResponse << "Hello World!"; return HTTP_SUCCESS;}
для функции
OnHello: