Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

Weinze

Frischling

  • »Weinze« ist der Autor dieses Themas

Beiträge: 23

Wohnort: Klagendorf am Wörtherteich

Beruf: Schüler

  • Private Nachricht senden

1

29.07.2010, 12:32

[Windows 7 + VC++ 2010] Problem mit dem Windows SDK

Hallo erstmal!

Ich bin ein Neuling hier und ich hoffe ihr könnt mir bei einem Problem weiterhelfen.

Nachdem ich die Bibliotheken und Include-Dateien bei den Projekteigenschaften eingetragen hatte, wollte ich versuchen das Projekt "TestProjekt" einmal zu starten. Natürlich habe ich vorhin noch in der TestProjekt.h die tribase.h eingetragen.

Nun, der Build schlug fehl, und zwar scheiterte ich ausschließlich am Microsoft SDK.

Hier der Bericht vom Build:


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
>------ Build started: Project: TestProjekt, Configuration: Debug Win32 ------
1>Build started 29.07.2010 12:16:06.
1>InitializeBuildStatus:
1> Touching "Debug\TestProjekt.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> TestProjekt.cpp
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(237): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(237): error C2143: syntax error : missing ';' before '*'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(237): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(356): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(356): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(356): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(372): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(372): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(372): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(423): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(423): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(423): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(432): error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(432): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(432): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(702): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(713): error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(788): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(799): error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(1061): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(1120): error C2061: syntax error : identifier 'LPWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\mmsystem.h(792): error C2373: 'WAVEFORMATEX' : redefinition; different type modifiers
1> c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(237) : see declaration of 'WAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\mmsystem.h(795): error C2378: 'LPCWAVEFORMATEX' : redefinition; symbol cannot be overloaded with a typedef
1> c:\program files\microsoft sdks\windows\v7.0a\include\dsound.h(237) : see declaration of 'LPCWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\mmsystem.h(837): error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
1>c:\program files\microsoft sdks\windows\v7.0a\include\mmsystem.h(893): error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.92
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Aus den Fehlermeldungen ist ersichtlich, dass es sich immer um einen Typ namens LPWAVEFORMATEX oder ähnliches handelt.

Ich selbst verstehe grad überhaupt nicht worum es geht und deshalb meine Frage an euch:

Was soll ich tun?

Bitte helft einem Neuling!

Lg
Außen Toppits, innen Geschmack!

2

29.07.2010, 12:56

Hm, das Problem hatten wir hier schon öfters. Kannst ja mal die Forensuche anschmeißen. Könnt helfen, wenn du mmsystem.h vor Dsound.h inkludierst.

Weinze

Frischling

  • »Weinze« ist der Autor dieses Themas

Beiträge: 23

Wohnort: Klagendorf am Wörtherteich

Beruf: Schüler

  • Private Nachricht senden

3

29.07.2010, 13:20

Danke für die Antwort!

Stimmt, ich hab in der Forensuche wirklich noch einen Thread zu dsound.h gefunden und jetzt funktioniert es einwandfrei! :)

Für alle die dasselbe Problem haben, schaut mal hier rein: dsound problem

Lg
Außen Toppits, innen Geschmack!

Werbeanzeige