[tremor] try to run tremor sample using VC++6

Michael Smith msmith at xiph.org
Fri Nov 22 07:22:00 PST 2002



>I got a lot of errors which were all related to wrong #include directives.
>then I added a line in 'ivorbisfile_example' like:
>	pFile = fopen("D:\test.ogg","r"); //open file instead of stdin
>	ov_open(pFile,&vf,NULL,0);

VC++ (well, this is actually all of windows) is totally crack-headed,
and fopen(filename, "r") won't give you the file, it'll give you a
corrupted version of the file (newlines mangled, and end-of-file well
before the actual end). 

Do fopen(filename, "rb") for it to work.

Michael

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'tremor-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Tremor mailing list