The information in this article applies to:
SYMPTOMSGenerating an ISAPI Filter using the MFC ISAPI Extension Wizard and selecting the option "Client Authentication Requests," will generate an ISAPI Filter DLL with an OnAuthentication() member function that will never be called. CAUSEWhen generating an ISAPI Filter using the MFC ISAPI Extension Wizard, if the "Client Authentication Requests" checkbox is selected on the second page of the Wizard, the function generated, OnAuthentication(), will have an improper type as one of its parameters. Therefore, it will not override the virtual function in the base class. RESOLUTION
Modify the definition and implementation of the OnAuthentication function
so the second parameter is of type PHTTP_FILTER_AUTHENT rather than type
PHTTP_FILTER_PREPROC_HEADERS.
and like the following in the .CPP file:
The second parameter should not be PHTTP_FILTER_PREPROC_HEADERS, but should
read PHTTP_FILTER_AUTHENT. For example:
in the .H file, and:
in the .CPP file.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was fixed in Visual C++ 32-bit Edition version 4.2. Additional query words:
Keywords : kbprg kbISAPI kbMFC kbVC kbVC410bug kbVC420fix iisapi |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |