I would like to use Apple’s CoreMIDI library inline in Xojo.
The MIDIGetNumberOfSources call does not require any arguments. However, if I do not put something in the brackets, I get errors such as ‘Objective-C declares must have at least one parameter (the target of the message)’.
How to get past this?
EDIT: Below is a sample declaration I am making:
Declare Function MIDIGetNumberOfSources Lib "CoreMIDI" Selector "MIDIGetNumberOfSources" As Integer