Hi,
I'm getting an error when I compile the following code (with #include
"PortMIDI.h"):
// Declare a pointer to point to the first element of the array
PmStream* pmMIDIInput;
// Allocate the first element of the array
pmMIDIInput = new PmStream; // This line generates: cannot allocate
'void' objects
// Size the array to the number of ports we want
Int nPorts = 5;
pmMIDIInput = new PmStream[ nPorts];
I haven't used dynamic arrays in c++ before, but apart from the fact that my
code uses PmStream instead of the int used in several tutorials I've checked
against, I can't see what's different about my code.
Can anybody see what I'm doing wrong, please?
Best wishes.
Tim Burgess
Raised Bar Ltd
Phone: +44 (0)1827 719822
Don't forget to vote for improved access to music and music technology at
http://www.raisedbar.net/petition.htm
_______________________________________________
media_api mailing list
[email protected]
http://lists.create.ucsb.edu/mailman/listinfo/media_api