Friday 15 September 2006

Direct Shit

MSDN says: Building DirectMusic Projects
Projects need to include the Dmusici.h header file, which contains declarations for the DirectMusic performance layer.

Yeah! Once in a lifetime, Microsoft did something easy to use and clearly explained! Let's download the tiny SDK and just do it!

#include <Dmusici.h>

int main(int argc, char *argv[])
{
  return 0;
}

Here's the result:

warning: "MAKEFOURCC" redefined
warning: this is the location of the previous definition
error: declaration of `WLOOP _DMUS_REGION::WLOOP[1]'
error: changes meaning of `WLOOP' from `typedef struct _rloop WLOOP'
make.exe: *** [main.o] Error 1

Well.. GG! I'm tired after ONE line of code!

Ok, forget 'bout DirectMusic.

2 comments:

Nemo said...

Old post, found it via google, but to stop the errors if you haven't figured out, go in to the file where the error "changes meaning of WLOOP from 'typedef struct _rloop WLOOP'" is generated. Once there, you'll find a struct where they (as the fuck ups they are) defined something as WLOOP WLOOP[1], change that to WLOOP LOOP[1] and it'll compile fine.

I wish I could give you file names, but I can't remember them

Unknown said...

The post is very old and I actually don't spend a lot of time on Directstuff... but thank you anyway! :)