Microsoft KB Archive/183111

= IFilter SDK Sample Doesn't Build Under Visual C 5 SP3 =

Article ID: 183111

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q183111



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
The IFilter SDK sample does not build under Visual C++ version 5.0 Service Pack 3 and reports the following error message:

.\global.hxx(40) : error C2433: '_CRTAPI1' : 'inline' not permitted on

data declarations



CAUSE
The definition for _CRTAPI1 has been removed from the Windows header files in Service Pack 3.



RESOLUTION
Add the definition of _CRTAPI to the Pch.cxx file as follows:

// // Copyright (C) Microsoft Corporation, 1992 - 1996 // // File:       pch.cxx // // Contents:   Pre-compiled header //


 * 1) include 


 * 1) ifndef _CRTAPI1
 * 2) if _MSC_VER >= 800 && _M_IX86 >= 300
 * 3) define _CRTAPI1 __cdecl
 * 4) else /* _MSC_VER >= 800 && _M_IX86 >= 300 */
 * 5) define _CRTAPI1
 * 6) endif /* _MSC_VER >= 800 && _M_IX86 >= 300 */
 * 7) endif /* _CRTAPI1 */



STATUS
Microsoft has confirmed this to be a problem in Microsoft Internet Information Server version 4.0. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: kbdsi

Keywords: kbbug kbnofix KB183111

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.