• Advertisement
Sign in to follow this  
  • entries
    156
  • comments
    253
  • views
    85472

Advice Welcomed

Sign in to follow this  

145 views

So, Im attempting to learn what I can do with the console window to incorporate a few features within seven...

So, I included windows.h and BAM... I'm slammed with errors up the wa-zoo!

Any sort of direction is welcomed with this issue. I've pretty much declaired that I have bad header files, but if anybody else can point something else out that I may not understand, feel free.

----- Build started: Project: Seven, Configuration: Debug Win32 ------
Compiling...
entity.cpp
c:\program files\microsoft visual studio 8\vc\include\winnt.h(3035) : 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(3327) : 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(3423) : warning C4068: unknown pragma
c:\program files\microsoft visual studio 8\vc\include\winnt.h(3428) : 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'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(1386) : error C2375: 'GetProcessWindowStation' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\winbase.h(1448) : see declaration of 'GetProcessWindowStation'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(6699) : error C2375: 'ExcludeUpdateRgn' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(2626) : see declaration of 'ExcludeUpdateRgn'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(7356) : error C2375: 'GetCursor' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(2670) : see declaration of 'GetCursor'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(7563) : error C2375: 'FillRect' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(2635) : see declaration of 'FillRect'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8075) : error C2375: 'GetWindowThreadProcessId' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\winbase.h(1530) : see declaration of 'GetWindowThreadProcessId'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8125) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8128) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8131) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8131) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8172) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8177) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8180) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8185) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : error C2146: syntax error : missing ')' before identifier 'hhk'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : error C2491: 'UnhookWindowsHookEx' : definition of dllimport data not allowed
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8202) : error C2146: syntax error : missing ')' before identifier 'hhk'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8202) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8202) : error C2491: 'CallNextHookEx' : definition of dllimport data not allowed
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8205) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8661) : warning C4005: 'DI_MASK' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(50) : see previous definition of 'DI_MASK'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8662) : warning C4005: 'DI_IMAGE' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(49) : see previous definition of 'DI_IMAGE'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8663) : warning C4005: 'DI_NORMAL' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(51) : see previous definition of 'DI_NORMAL'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8664) : warning C4005: 'DI_COMPAT' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(47) : see previous definition of 'DI_COMPAT'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8665) : warning C4005: 'DI_DEFAULTSIZE' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(48) : see previous definition of 'DI_DEFAULTSIZE'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(10406) : fatal error C1083: Cannot open include file: 'tvout.h': No such file or directory
main.cpp
c:\program files\microsoft visual studio 8\vc\include\winnt.h(3035) : 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(3327) : 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(3423) : warning C4068: unknown pragma
c:\program files\microsoft visual studio 8\vc\include\winnt.h(3428) : 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'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(1386) : error C2375: 'GetProcessWindowStation' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\winbase.h(1448) : see declaration of 'GetProcessWindowStation'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(6699) : error C2375: 'ExcludeUpdateRgn' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(2626) : see declaration of 'ExcludeUpdateRgn'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(7356) : error C2375: 'GetCursor' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(2670) : see declaration of 'GetCursor'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(7563) : error C2375: 'FillRect' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(2635) : see declaration of 'FillRect'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8075) : error C2375: 'GetWindowThreadProcessId' : redefinition; different linkage
c:\program files\microsoft visual studio 8\vc\include\winbase.h(1530) : see declaration of 'GetWindowThreadProcessId'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8125) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8125) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8128) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8131) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8131) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8172) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8177) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8180) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8185) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : error C2146: syntax error : missing ')' before identifier 'hhk'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : error C2491: 'UnhookWindowsHookEx' : definition of dllimport data not allowed
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8196) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8202) : error C2146: syntax error : missing ')' before identifier 'hhk'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8202) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8202) : error C2491: 'CallNextHookEx' : definition of dllimport data not allowed
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8205) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8661) : warning C4005: 'DI_MASK' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(50) : see previous definition of 'DI_MASK'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8662) : warning C4005: 'DI_IMAGE' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(49) : see previous definition of 'DI_IMAGE'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8663) : warning C4005: 'DI_NORMAL' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(51) : see previous definition of 'DI_NORMAL'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8664) : warning C4005: 'DI_COMPAT' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(47) : see previous definition of 'DI_COMPAT'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(8665) : warning C4005: 'DI_DEFAULTSIZE' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\wingdi.h(48) : see previous definition of 'DI_DEFAULTSIZE'
c:\program files\microsoft visual studio 8\vc\include\winuser.h(10406) : fatal error C1083: Cannot open include file: 'tvout.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Documents and Settings\David\My Documents\Visual Studio 2005\Projects\Seven\Seven\Debug\BuildLog.htm"
Seven - 64 error(s), 22 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

http://paste.axpr.net/?show=283

Thanks
-pr
Sign in to follow this  


1 Comment


Recommended Comments

The errors suggest a missing platform declaration (WIN_VER or WINNT_VER), most likely best resolved through a Platform SDK and IE upgrade (IE bceause it installs a plethora of common controls, upon which some later code may depend).

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement