Help Errors

First of all I have no idea on the forum where this is suppose to go so forgive me if it is the wrong place. I have been trying to compile my programs but i keep getting these same errors everytime.

Compiling...
stdafx.cpp
C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop)
C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop)
C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3435) : warning C4068: unknown pragma
C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3440) : warning C4068: unknown pragma
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1252) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1252) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1253) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1253) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1253) : error C2086: 'int DECLSPEC_NORETURN' : redefinition
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1252) : see declaration of 'DECLSPEC_NORETURN'
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1313) : error C2144: syntax error : 'void' should be preceded by ';'
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1313) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1313) : error C2086: 'int DECLSPEC_NORETURN' : redefinition
C:\Program Files\Microsoft Visual Studio 8\VC\include\winbase.h(1252) : see declaration of 'DECLSPEC_NORETURN'


Answer this question

Help Errors

  • Alain de la Kethulle

    And there is nothing else in the stdafx.cpp than include "stdafx.h"

    Thats strange. I have no idea except that you include files might be corrupt.



  • littlePT

    Ya thats it. So where can i download some none corrupt ones.

  • DavidWSeams

    Reinstalling VS (if not the express edition) should install the PSDK files once more.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Raven25

    here is stdafx.h

    // stdafx.h : include file for standard system include files,
    // or project specific include files that are used frequently, but
    // are changed infrequently
    //

    #pragma once

    // Modify the following defines if you have to target a platform prior to the ones specified below.
    // Refer to MSDN for the latest info on corresponding values for different platforms.
    #ifndef WINVER // Allow use of features specific to Windows XP or later.
    #define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
    #endif

    #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
    #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
    #endif

    #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
    #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
    #endif

    #ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
    #define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
    #endif

    #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
    // Windows Header Files:
    #include <windows.h>


    // TODO: reference additional headers your program requires here


  • thePerm

    Show us the lines before you include windows.h! Or show us your complete stdafx.h!

  • bradman

    CAN YOU HELP

    I get an error as :

    "UNABLE TO FIND MANIFEST SIGNING CERTIFICATE IN THE CERTIFICATE STORE."

    thanks


  • Help Errors