05-14-2005, 01:49 PM
Hello
Im doing a simple math program that also plays a midi file using the "mmsystem" example, the things work fine like this
where soundtrak.mid is a file in the same folder than the exe
but since it is a small program i want to make it as an alone exe, whit the midi file inside.
I used to do it in C/C++ by opening an hex editor and putting the file in hex format inside the code as "0xf4, 0x3d,. ." hex data. I wonder if there is similar way to do this in freebasic, using an hexadecimal data type or similar, since i havent still find the way to do it.
Cheers and thanks
Im doing a simple math program that also plays a midi file using the "mmsystem" example, the things work fine like this
Code:
winmmPlayMidi( "soundtrak.mid" )
but since it is a small program i want to make it as an alone exe, whit the midi file inside.
I used to do it in C/C++ by opening an hex editor and putting the file in hex format inside the code as "0xf4, 0x3d,. ." hex data. I wonder if there is similar way to do this in freebasic, using an hexadecimal data type or similar, since i havent still find the way to do it.
Cheers and thanks