[Stk] in MFC?

Dan Riley dpriley at ucla.edu
Fri Feb 7 16:59:35 PST 2003


Hi, I'm new to stk and am interested in using it in an MFC application. I've followed all the setup directions, but when I compile I still get errors. I'm guessing its from the precompiled header thing. So, I got 55 errors or so I'm guessing from a problem with direct sound, so I included dsound.h directly in the stdafx.h file and it knocked it down to 20. Here are the errors:

c:\dxsdk\include\dsound.h(228) : error C2143: syntax error : missing ';' before '*'
c:\dxsdk\include\dsound.h(228) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(347) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\dxsdk\include\dsound.h(347) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(347) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(363) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\dxsdk\include\dsound.h(363) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(363) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(414) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\dxsdk\include\dsound.h(414) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(414) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(423) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\dxsdk\include\dsound.h(423) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(423) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\dxsdk\include\dsound.h(684) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\dxsdk\include\dsound.h(694) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\dxsdk\include\dsound.h(768) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\dxsdk\include\dsound.h(778) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\dxsdk\include\dsound.h(1039) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\dxsdk\include\dsound.h(1097) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'


if anyone knows what's causing this, I'd really appreciate the help. I have the latest directx runtimes and everything. 

Thanks a lot,

Daniel Riley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20030207/c46be965/attachment.html>


More information about the Stk mailing list