none
Compiling errors with wincrypt.h in visual c++ 6 RRS feed

  • Question

  • Hello,

    When I compile a project in  Visual C++ 6, I got the following errors:

    Compiling...
    StdAfx.cpp
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6681) : error C2065: 'IRpcStubBuffer' : undeclared identifier
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6681) : error C2065: 'This' : undeclared identifier
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6682) : error C2065: 'IRpcChannelBuffer' : undeclared identifier
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6682) : error C2065: '_pRpcChannelBuffer' : undeclared identifier
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6683) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
            C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\rpcdcep.h(53) : see declaration of 'PRPC_MESSAGE'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6683) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6683) : warning C4229: anachronism used : modifiers on data are ignored
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6683) : error C2491: 'CertVerifyCRLTimeValireamConfig_GetFormat_Stub' : definition of dllimport data not allowed
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6683) : error C2078: too many initializers
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6683) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
            C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\rpcdcep.h(53) : see declaration of 'PRPC_MESSAGE'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6684) : error C2059: syntax error : ')'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6688) : error C2065: 'IAMStreamConfig' : undeclared identifier
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6689) : error C2062: type 'int' unexpected
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6696) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
            C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\rpcdcep.h(53) : see declaration of 'PRPC_MESSAGE'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6696) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6696) : warning C4229: anachronism used : modifiers on data are ignored
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6696) : error C2182: 'IAMStreamConfig_GetNumberOfCapabilities_Stub' : illegal use of type 'void'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6696) : error C2078: too many initializers
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6696) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
            C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\rpcdcep.h(53) : see declaration of 'PRPC_MESSAGE'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6697) : error C2059: syntax error : ')'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6702) : error C2062: type 'int' unexpected
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6710) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
            C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\rpcdcep.h(53) : see declaration of 'PRPC_MESSAGE'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6710) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6710) : warning C4229: anachronism used : modifiers on data are ignored
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6710) : error C2182: 'IAMStreamConfig_GetStreamCaps_Stub' : illegal use of type 'void'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6710) : error C2078: too many initializers
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6710) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
            C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\rpcdcep.h(53) : see declaration of 'PRPC_MESSAGE'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6711) : error C2059: syntax error : ')'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6737) : error C2146: syntax error : missing ';' before identifier 'IID_IConfigInterleaving'
    C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\wincrypt.h(6737) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.

    ************

    Please give me any suggestion to fix the problem. Until now, I have tried the following things but they don't work for this problem:

    *  Reinstall the visual studio.
    * Download the latest sdk.
    * Include at the beginning of the file stdafx.h, the header file windows.h.
    * Varying the value of _WIN32_WINNT.

    The source code was done with visual c++ 6. When I compile the same source code with visual studio 2008 in another machine, I don't get these errors. Unfortunately, for this project I have to use visual c ++ 6. Thanks beforehand for your help.


    Friday, November 21, 2008 4:56 PM

Answers

  • The last compatible Windows SDK (formerly called Platform SDK) that VC6 supports is from February 2003 MSDN Subscription Library. The latest SDK is simply not compatible.
    Friday, November 21, 2008 6:15 PM