[C++] DirectX SDK

Hallo,

das aktuelle DX-SDK enthält diese Header nicht. Wenn du unbedingt mit DirectX 8 entwickeln willst, dann installiere doch einfach das entsprechende SDK von der Buch-CD. Da sind dann auch garantiert die richtigen Header dabei.

Grüße,
Matthias
 
Hi,

wenn ich DX8 benutze kommt wieder eine Menge anderer Fehler:

1>------ Build started: Project: Demo, Configuration: Debug Win32 ------
1>Compiling...
1>Demo.cpp
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\downloads\v02\v02\demo.cpp(74) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>ddutil.cpp
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>dsutil.cpp
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\downloads\v02\v02\dsutil.cpp(652) : error C2065: 'i' : undeclared identifier
1>c:\downloads\v02\v02\dsutil.cpp(653) : error C2065: 'i' : undeclared identifier


Gruß
 
Hi,

ich bin jetzt etwas weiter gekommen, und hab ein neues Problem:

Für alle folgenden Programme auf der Buch-CD werden Microsoft-Dateien, die auf der CS sind, eingebunden.

dxutil.h, dsutil.h usw.

Diese Dateien sind aber fehlerhaft, ich bekomm beim compilieren sehr viele Fehler.
Im Internet hab ich zu den Dateien nicht gefunden.

Hier ein Auszug:
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(85) : error C2146: syntax error : missing ';' before identifier 'DXUtil_Trace'
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(85) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(85) : error C2086: 'int VOID' : redefinition
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(72) : see declaration of 'VOID'
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(85) : error C2065: 'strMsg' : undeclared identifier
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(85) : error C2059: syntax error : '...'
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(86) : error C2146: syntax error : missing ';' before identifier '_DbgOut'
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(86) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(86) : error C2086: 'int HRESULT' : redefinition
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(86) : error C2059: syntax error : ','
1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(156) : error C2378: 'FLOAT' : redefinition; symbol cannot be overloaded with a typedef
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(64) : see declaration of 'FLOAT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(157) : error C2143: syntax error : missing ';' before '*'
1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(157) : error C2378: 'FLOAT' : redefinition; symbol cannot be overloaded with a typedef
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(64) : see declaration of 'FLOAT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(384) : error C2378: 'TCHAR' : redefinition; symbol cannot be overloaded with a typedef
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(27) : see declaration of 'TCHAR'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(425) : error C2378: 'HRESULT' : redefinition; symbol cannot be overloaded with a typedef
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C2146: syntax error : missing ';' before identifier 'HRESULT_FROM_WIN32'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C2433: 'HRESULT' : '__forceinline' not permitted on data declarations
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C2086: 'int HRESULT' : redefinition
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C2064: term does not evaluate to a function taking 1 arguments
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C2064: term does not evaluate to a function taking 1 arguments
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : error C2064: term does not evaluate to a function taking 1 arguments
1>c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h(22905) : warning C4508: 'HRESULT_FROM_WIN32' : function should return a value; 'void' return type assumed
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13712) : error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13712) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13712) : error C2370: 'HRESULT' : redefinition; different storage class
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13718) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13722) : error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13722) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13722) : error C2370: 'HRESULT' : redefinition; different storage class
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13723) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13727) : error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13727) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13727) : error C2370: 'HRESULT' : redefinition; different storage class
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13731) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13735) : error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13735) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13735) : error C2370: 'HRESULT' : redefinition; different storage class
1> c:\users\roman\documents\visual studio 2008\projects\ultris\ultris\dxutil.h(28) : see declaration of 'HRESULT'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13736) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13744) : error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(13744) : fatal error C1003: error count exceeds 100; stopping compilation


Was kann ich hier machen?


Gruß
 
Zuletzt bearbeitet:
Hi,

kann es an einer alten Version des Windows-SDK liegen?

c:\program files\microsoft sdks\windows\v6.0a\include\winerror.h
Wie ich an der Pfadangabe sehe, wird Windwos SDK Version 6 benutzt. Ist das die neuste? Ich bin grad nicht zuhause und kann nicht die neuste SDK runterladen.
 
kann es an einer alten Version des Windows-SDK liegen?

Wie ich an der Pfadangabe sehe, wird Windwos SDK Version 6 benutzt. Ist das die neuste? Ich bin grad nicht zuhause und kann nicht die neuste SDK runterladen.
Nein, das neueste ist SDK 7. Du verwendest die Version die zusammen mit dem Visual Studio installiert wurde. Das sollte also alles wunderbar zusammenarbeiten.

Gruß
 

Neue Beiträge

Zurück