sorry this isn’t juce related, but you guys are a trustworthy bunch.
i’ve got to write my own midi handling classes (just for messages and output) for a uni project. it’s going well, and i’ve not encountered any problems so far.
however, some of the other people in my group are using VB to write their app, so i’m putting the midi functions into a dll. for the most part, i’m okay with that, but i’m a little confused about how i’m going to get the port access done. in my own C++ version, i’ll just get a Midi_Output object that i created when i opened the device, and use that to send the messages. I’m not sure how i go about doing such a thing so that a VB coder can use it.
How would it be possible for me to do such a thing? My only thought at the moment is that i can have a class to hold all the midi output ports that may be open, and have an exposed ‘initialise’ funtion to create it. All my other functions would then make use of that instance, like a singleton. Is that even possible? From what i gather, i can only really just expose static/global functions, and can’t return my custom objects. Am i right here? I’m fairly new to this lark.