Ccfxrequest::setcustomdata - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

Example
The following code demonstrates how to handle exceptions in ColdFusion Extension DLL
procedures:
try
{
...Code that could throw an exception...
}
catch( CCFXException* e )
{
...Do appropriate resource cleanup here...
// Re-throw the exception
pRequest->ReThrowException( e ) ;
}
catch( ... )
{
// Something nasty happened
pRequest->ThrowException(
"Unexpected error occurred in CFX tag", "" ) ;
}

CCFXRequest::SetCustomData

Syntax
void CCFXRequest::SetCustomData(LPVOID lpvData)
Description
Sets custom (tag specific) data to carry with the request. Use this function to store request specific
data to pass to procedures within your custom tag implementation.
Parameters
Parameter
lpvData
Example
The following example creates a request-specific data structure of hypothetical type
MYTAGDATA and stores a pointer to the structure in the request for future use:
void ProcessTagRequest( CCFXRequest* pRequest )
try
{
MYTAGDATA tagData ;
pRequest->SetCustomData( (LPVOID)&tagData ) ;
... remainder of procedure ...
}
Description
Pointer to custom data
CCFXRequest class
763

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents