Hi.
I'm trying to make midi functions in windows from mmsystem.h available to Ruby.
I wrote a midi.i file but I'm not sure how it should really look like:
#-----------------------------------------------------------
%module midi
%{
#include "mmsystem.h"
%}
%include "mmsystem.h"
%import WINMMAPI MMRESULT WINAPI midiOutOpen( OUT LPHMIDIOUT phmo, IN UINT uDeviceID,
IN DWORD_PTR dwCallback, IN DWORD_PTR dwInstance, IN DWORD fdwOpen);
#---------------------------------------------------------------------------------------
I just tried one function for example (midiOutOpen) and when I run "swig -ruby midi.i" I get an error message: "Unable to find 'WINMMAPI".
Any suggestion what am I doing wrong or what should I do would be welcome.
Do I have to include some other files like windows.h or something ?
Thanks
Haris