-
Direct Music Trouble
Hey guys, a lil prob here. I am trying to intialize the Com for Direct Music. I am using Vc++ .NET and am using the Direct Soundlibrary. Here is my code
#include <iostream.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "dmusici.h"
#include "dsound.h"
int main()
{
LPDIRECTMUSIC8 ldm;
CoInitialize (NULL);
IDirectMusicPerformance *performance;
if (FAILED(CoCreateInstance(CLSID_DirectMusicPerfoman ce,
NULL,
CLSCTX_INPROC,
IID_IDirectMusicPerformance,
(void **)&performance)))
{
// handle error
}
getchar();
return 0;
}
My error is that it does not recognize "CLSID_DirectMusicPerfomance" Any ideas or better methods of playing a Midi using Direct Music api? Thanks!!!!!
-
Why does it hang over like that, maybe it's just the way you posted but change it to this:
CLSID_DirectMusicPerfomance
-
How about CLSID_DirectMusicPerformance ?
-
You forgot the r in performance
-
sry to jump in like this but I needed to know something. FwyWice, what's vc++ .net's difference from regular vc++? sry if the question is a little vague:confused: :confused:
-
The only real difference I see is that you can create .Net objects and that you can have your code compiled into the new immdeidate language for the Just in Time compiler. Oh and I think the New IDE is A LOT better but that is my opinion. I like the Intellisense A WHOLE lot too! ;)