27Writing CFX Tags with Visual C++
Listing 30.5 shows the code generated by the ColdFusion Tag Wizard. In the next section, this code
will be modified to create a CFX tag that actually does something useful.
Listing 30.5 Code Generated Automatically by the Tag Wizard
/////////////////////////////////////////////////////////////////////
//
// CFX_COMPUTESTANDARDDEVIATION - Cold Fusion custom tag
//
// Copyright 2002. All Rights Reserved.
//
#include “stdafx.h” // Standard MFC libraries
#include “cfx.h” // CFX Custom Tag API
void ProcessTagRequest( CCFXRequest* pRequest )
{
try
{
// Retrieve attributes passed to the tag
// For example:
// LPCSTR lpszColor = pRequest->GetAttribute(“COLOR”) ;
// Write output back to the user here...
pRequest->Write( “Hello from CFX_COMPUTESTANDARDDEVIATION!” ) ;
Figure 30.8
Your new project
workspace should look
something like this.
Komentarze do niniejszej Instrukcji