0 Members and 1 Guest are viewing this topic.
tDisp EQU PROGTOK+16 ; DEh 'Disp_'
Scoutdavid, I actually made one of these 4 days ago in c++. I could give you the source if you wanted.
Here it is. I'm sure there is a better way to list the tokens. I basically write in ASM based c++. So as you can see, I just wanted to define data
ifstream fSongFile (argv[1], ios::_Nocreate | ios::binary | ios::ate | ios::out);
The problem might be that I did it in C++ and you are doing it in C. Just do a whatever it takes to open a file in C, you don't have to specifically open it the way I do. All that's important is that you open it in binary mode and that you can figure out the size.
That's strange... What are you using to compile the program? I used visual studio 2010. The year probably doesn't matter since this is a simple program, but perhaps if you don't have visual studio, you won't have exactly the same libraries.