Another newbie question
Another newbie question
- Subject: Another newbie question
- From: "Peter Karlsson" <email@hidden>
- Date: Tue, 25 Mar 2003 07:31:09 +0000
Dear list!
I feel a little lost at the moment and need some help.
I am programming a MIDI app in Cocoa. In my app I have a file called
midithru.m where MyReadProc is located. In another file called initapp.m I
have am trying to create a client and port like this:
MIDIClientRef client = NULL;
MIDIClientCreate(CFSTR("VintageEight"), NULL, NULL, &client);
MIDIPortRef inPort = NULL;
MIDIInputPortCreate(client, CFSTR("Input port"), MyReadProc, NULL, &inPort);
MIDIOutputPortCreate(client, CFSTR("Output port"), &gOutPort);
Nothing is wrong with this code. I just wonder if I need a file called
midithru.h and how this file is gonna look like in that case?
When building I get a error like this:
`MyReadProc' undeclared (first use in this function)
I know that I must declare it but how and where?
Best regards Peter
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.