MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Manuale Utente Pagina 27

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 44
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 26
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.
Vedere la pagina 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 43 44

Commenti su questo manuale

Nessun commento