QA

   

Q&A

Q1:

In the request handler source file, one line reads [request_handler("Default")]. What is this line for?

A1:

The request_handler attribute is the name of the handler placed in the handler tag in the server response file. This associates any replacement tags with your DLL. You can create a different request handler (which requires a different class) and use the subhandler SRF tag if you wish to use more than one handler.

Q2:

Is it possible to return something other than True or False from a replacement handler function?

A2:

The only values you can return, other than HTTP_SUCCESS and HTTP_S_FALSE, are error codes. These should only be used when a catastrophic error happens, because returning an error code will not render any the SRF but will instead render an error page.

Q3:

Can I pass parameters to replacement functions from a server response file?

A3:

Yes, that is possible. However, you will receive the parameters in a single block of memory. It is then up to you to parse that memory block to receive the parameters.


   
Top


Sams Teach Yourself Visual C++. NET in 24 Hours
Sams Teach Yourself Visual C++.NET in 24 Hours
ISBN: 0672323230
EAN: 2147483647
Year: 2002
Pages: 237

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net