Overriding File Extensions


In many cases, it s desirable to use a file extension other than .srf for your server response files. The ATL Server framework makes this easy to do. All that you need to do is override the ATL_DEFAULT_STENCIL_EXTENSION macro. There are certain constraints, however. You must override it directly to a string and not to a variable. That is,

 #define ATL_DEFAULT_STENCIL_EXTENSION ".myext" 

is acceptable, whereas

 #define ATL_DEFAULT_STENCIL_EXTENSION s_szExt 

is not acceptable (where s_szExt is a string variable).

Additionally, you must override the ATL_DEFAULT_STENCIL_EXTENSION macro consistently. That is, all request handler and ISAPI projects must contain this #define , or else inconsistent behavior will occur.

Similarly, you can override the .dll extension using the ATL_DEFAULT_DLL_EXTENSION macro. The same rules that apply to the .srf extension also apply to the .dll extension.




ATL Server. High Performance C++ on. NET
Observing the User Experience: A Practitioners Guide to User Research
ISBN: B006Z372QQ
EAN: 2147483647
Year: 2002
Pages: 181

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