|
지금현재 다이렉트사운드 쓰려고 하는데요
DSound.h , MMsystem.h는 제가 고친 것도 없고 있는거 갖다 쓰는건데요
MMsystem.h 헤더는 DirectSound (WAV 읽기) 에 필요한 헤더 파일로 쓰고 있는데요
빌드 하면 아래와 같이 에러 뜨는데요 멀티 선언 되어 있는 것 같은데 음 이거 어떻게 해결 하면 되죠?
Project/Option/Directories 설정도 혹시나 해서 include / Lib 맨위로 올려 놓고 했는데도 안되는데요
고수님들 해결 좀 해주세요 ㅜㅜ ( 첨부파일에 스샷 찍어 올렸습니다.)
-------------------------------------------------------------------------------------------------
Build
[C++ Error] DSound.h(61): E2257 , expected
[C++ Error] DSound.h(128): E2303 Type name expected
[C++ Error] DSound.h(128): E2139 Declaration missing ;
[C++ Error] DSound.h(142): E2303 Type name expected
[C++ Error] DSound.h(142): E2139 Declaration missing ;
[C++ Error] DSound.h(193): E2303 Type name expected
[C++ Error] DSound.h(193): E2139 Declaration missing ;
[C++ Error] MMsystem.h(803): E2238 Multiple declaration for 'WAVEFORMATEX'
[C++ Error] DSound.h(61): E2344 Earlier declaration of 'WAVEFORMATEX'
[C++ Error] MMsystem.h(803): E2238 Multiple declaration for 'WAVEFORMATEX'
[C++ Error] DSound.h(61): E2344 Earlier declaration of 'WAVEFORMATEX'
[C++ Error] DS.cpp(61): E2316 'lpwfxFormat' is not a member of '_DSBUFFERDESC'
[C++ Error] DS.cpp(112): E2034 Cannot convert 'tWAVEFORMATEX *' to 'int'
[C++ Error] DS.cpp(112): E2342 Type mismatch in parameter 'LPCWAVEFORMATEX' (wanted 'int', got 'tWAVEFORMATEX *')
[C++ Error] DS.cpp(227): E2316 'lpwfxFormat' is not a member of '_DSBUFFERDESC'
|