[Stk] in MFC?

Dan Riley dpriley@ucla.edu
Fri, 7 Feb 2003 16:59:35 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0040_01C2CECA.4AA18450
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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.=20

Thanks a lot,

Daniel Riley

------=_NextPart_000_0040_01C2CECA.4AA18450
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, I'm new to stk and am interested in =
using it in=20
an MFC application. I've followed all the setup directions, but when I =
compile I=20
still get errors. I'm guessing its from the precompiled header thing. =
So, I got=20
55 errors or so I'm guessing from a problem with direct sound, so I =
included=20
dsound.h directly in the stdafx.h file and it knocked it down to 20. =
Here are=20
the errors:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>c:\dxsdk\include\dsound.h(228) : error =
C2143:=20
syntax error : missing ';' before '*'<BR>c:\dxsdk\include\dsound.h(228) =
: error=20
C2501: 'LPCWAVEFORMATEX' : missing storage-class or type=20
specifiers<BR>c:\dxsdk\include\dsound.h(347) : error C2146: syntax error =
:=20
missing ';' before identifier =
'lpwfxFormat'<BR>c:\dxsdk\include\dsound.h(347) :=20
error C2501: 'LPWAVEFORMATEX' : missing storage-class or type=20
specifiers<BR>c:\dxsdk\include\dsound.h(347) : error C2501: =
'lpwfxFormat' :=20
missing storage-class or type =
specifiers<BR>c:\dxsdk\include\dsound.h(363) :=20
error C2146: syntax error : missing ';' before identifier=20
'lpwfxFormat'<BR>c:\dxsdk\include\dsound.h(363) : error C2501: =
'LPWAVEFORMATEX'=20
: missing storage-class or type =
specifiers<BR>c:\dxsdk\include\dsound.h(363) :=20
error C2501: 'lpwfxFormat' : missing storage-class or type=20
specifiers<BR>c:\dxsdk\include\dsound.h(414) : error C2146: syntax error =
:=20
missing ';' before identifier =
'lpwfxFormat'<BR>c:\dxsdk\include\dsound.h(414) :=20
error C2501: 'LPWAVEFORMATEX' : missing storage-class or type=20
specifiers<BR>c:\dxsdk\include\dsound.h(414) : error C2501: =
'lpwfxFormat' :=20
missing storage-class or type =
specifiers<BR>c:\dxsdk\include\dsound.h(423) :=20
error C2146: syntax error : missing ';' before identifier=20
'lpwfxFormat'<BR>c:\dxsdk\include\dsound.h(423) : error C2501: =
'LPWAVEFORMATEX'=20
: missing storage-class or type =
specifiers<BR>c:\dxsdk\include\dsound.h(423) :=20
error C2501: 'lpwfxFormat' : missing storage-class or type=20
specifiers<BR>c:\dxsdk\include\dsound.h(684) : error C2061: syntax error =
:=20
identifier 'LPWAVEFORMATEX'<BR>c:\dxsdk\include\dsound.h(694) : error =
C2061:=20
syntax error : identifier =
'LPCWAVEFORMATEX'<BR>c:\dxsdk\include\dsound.h(768) :=20
error C2061: syntax error : identifier=20
'LPWAVEFORMATEX'<BR>c:\dxsdk\include\dsound.h(778) : error C2061: syntax =
error :=20
identifier 'LPCWAVEFORMATEX'<BR>c:\dxsdk\include\dsound.h(1039) : error =
C2061:=20
syntax error : identifier =
'LPWAVEFORMATEX'<BR>c:\dxsdk\include\dsound.h(1097) :=20
error C2061: syntax error : identifier 'LPWAVEFORMATEX'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if anyone knows what's causing this, =
I'd really=20
appreciate the help. I have the latest directx runtimes and everything.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Daniel Riley</FONT></DIV></BODY></HTML>

------=_NextPart_000_0040_01C2CECA.4AA18450--