I'm trying to implement DirectSound since the stock windows sound functions are pretty limited. I needed to include dsound.h, which also grabbed sal.h as an include. Without sal.h, dsound.h gets loads of errors. But with sal.h, a whole bunch of errors come up spread throughout my own code that don't appear if I just comment out #include <dsound.h>. They seem to pop up around lines that involve pointers. Here are a few:
pEnt=NULL; //pEnt is an Entity *, Entity is a custom class
if(pEnt!=NULL)
if(pTarget!=NULL) {pTarget->Deactivate();} //pTarget is an Object *, Object is a custom class
PlaySound("snd/geteq.wav",NULL,SND_FILENAME | SND_ASYNC); //String is a series of pointers, right?
if(elist[0]!=NULL) //elist is an array of Entity *'s
if(pEnt->ai_tEnt!=NULL) //pEnt is an Entity *, ai_tEnt is also an Entity *
(These lines are not in order, they're throughout several files.)
The error is always some variant of "Expected primary-expression before '[some character]' token"
Does sal.h add some new syntax requirements or something? Does anybody have experience with this type of issue?