MP3 to WAV converter

Hi,
I have to make a simple program converting files from .mp3 to .wav. It has to change "stereo" to "mono" and have possibility to change sample rate (from 44100 HZ to 8000, 16000, 32000 or without changing). I already have tried to use this https://msdn.microsoft.com/en-us/library/windows/desktop/dd757929%28v=vs.85%29.aspx#WriteWavFile
but I can't deal with all the errors, even doing it with copy-paste.
I use MS Visual Studio.

Thanks in advance
What errors ? What version of VS do you use ?
VS 2015.

Error C2065 'HeapEnableTerminationOnCorruption': undeclared identifier
Error C3861 'HeapSetInformation': identifier not found MP3toWAV
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2143 syntax error: missing ';' before '*'
Error C2065 'wszSourceFile': undeclared identifier

These are examples. There are 79 errors now and I have no Idea how to quickly copy and paste them
Last edited on
The code has some problems. Try this:
http://pastebin.com/JJJkR7FX

Don't forget to provide the filenames on the command line.
Last edited on
Ok, the code has 0 errors now.
But I am a newbie - Could you tell me how to provide the filenames on the command line?
Topic archived. No new replies allowed.