Produces "warning: assignment from a incompatible pointer type"Code:#include <mmsystem.h> ... MMRESULT (_stdcall *fpMidiOutOpen)(LPHMIDIOUT,unsigned int,unsigned long,unsigned long,unsigned long); MMRESULT (_stdcall *fpMidiOutShortMsg)(HMIDIOUT, DWORD); MMRESULT (_stdcall *fpMidiOutClose)(HMIDIOUT); ... fpMidiOutOpen=GetProcAddress(hLibrary,"midiOutOpen"); fpMidiOutShortMsg = GetProcAddress(hLibrary,"midiOutShortMsg"); fpMidiOutClose= GetProcAddress(hLibrary,"midiOutClose");
I Googled, and apparently I'm not supposed to point to DWORD or ULONG because of the fixed width? I'm a little lost with pointers.
I found an article that said you should use INT_PTR, UINT_PTR, DWORD_PTR, etc. instead, but that hasn't helped.