Hi Christoph,

I tried this in sound.h:

const unsigned int SOUND_COMMAND_INIT_HANDLE =
(const)RegisterWindowMessage(UM_SOUND_COMMAND_INIT_HANDLE_MSG);

and got the error:

d:\src\freesci\src\include\sound.h(76) : error C2099: initializer is not a
constant

Even with both const's removed I still get the same error.

When trying to do a case statement with SOUND_COMMAND_xxx then, I get this
error:

d:\src\freesci\src\sound\sound.c(127) : error C2051: case expression not
constant

That's why I had to ditch the case statements. Do you have any suggestions?

Alex.




Reply via email to