Knowledge Base

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

Article ID: 183111

Article Last Modified on 6/23/2005


APPLIES TO


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:

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
// 

 #include <windows.h>

 #ifndef _CRTAPI1
 #if _MSC_VER >= 800 && _M_IX86 >= 300
 #define _CRTAPI1 __cdecl
 #else  /* _MSC_VER >= 800 && _M_IX86 >= 300 */ 
 #define _CRTAPI1
 #endif  /* _MSC_VER >= 800 && _M_IX86 >= 300 */ 
 #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