Developing Cfx Tags In C; Sample C++ Cfx Tags; Setting Up Your C++ Development Environment - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

{ "Lynne", "Teague", "Developer" } }
DebugQuery query =
new DebugQuery( "Employees", columns, data ) ;
// create tag, process debugging request, and print results
OutputQuery tag = new OutputQuery() ;
DebugRequest request = new DebugRequest( attributes, query ) ;
DebugResponse response = new DebugResponse() ;
tag.processRequest( request, response ) ;
response.printResults() ;
}
catch( Throwable e ) {
e.printStackTrace() ;
}
}
public void processRequest( Request request ) throws Exception {
// ...code for processing the request...
}
}

Developing CFX tags in C++

The following sections provide information to help you develop CFX tags in C++.

Sample C++ CFX tags

Before you begin development of a CFX tag in C++, you might want to study the two CFX tags
included with ColdFusion MX. These examples will help you get started working with the
CFXAPI. The two example tags are as follows:
CFX_DIRECTORYLIST
CFX_NTUSERDB
On Windows NT, these tags are located in the \cfusion\cfx\examples directory. On UNIX, these
tags are in cf_root/coldfusion/cfx/examples.

Setting up your C++ development environment

The following compliers generate valid CFX code for UNIX platforms:
Platform
Solaris
Linux
HP-UX 11
Before you can use your C++ compiler to build custom tags, you must enable the compiler to
locate the CFX API header file, cfx.h. In Windows, you do this by adding the CFX API include
directory to your list of global include paths. In Windows, this directory is \cfusion\cfx\include.
On UNIX this directory is /opt/coldfusion/cfx/include. On UNIX, you will need
includepath
on your compile line (see the Makefile for the directory list example in the cfx/
<
>
examples directory).
Queries a directory for the list of files it contains.
(Windows NT only) Lets you add and delete Windows NT users.
Compiler
Sun C++ compiler 5.0 or higher (gcc does not work)
RedHat 6.2 gcc/egcs 1.1.2 compiler
HP aCC C++ compiler
;
-I

Developing CFX tags in C++

261

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents