how can i play a midi file resource?

using midi functions, how can i play midi files and resource midi files?
You can't play a MIDI file straight from a resource with the WIN API , the mciSendCommand function plays only files. One way would be to extract the resource, save as a file, play it and finally delete the file. Another option would be to embed the Windows Media Player via COM
Last edited on
the Windows Media Player can play resources?
No I was wrong. Forget about the MEdia Player.
if we can play wave from a resource, why not others files(speaking on audio)?
I think you have to ask Microsoft about that.
so lets go more old: on past they used mid resource files on games,right? if so how they played? just copy the stream to a new file?
I have no idea what sound files they used. Maybe they has some third party libraries ?
that's a good point too
please correct me some terms: what is the diference between MID files and MIDI(like piano)?
Why don't you just download it and try ?
i did, but i must create a dll for use it on VB too
i created a DLL but isn't compatible with VB. can you advice me?
Sorry, I don't know VB
i'm sorry.... do you know ActiveX Component? i think that it's the only way
No sorry I don't know ActiveX
thanks for all
Topic archived. No new replies allowed.