Okay since you are using lame, I will tell you how to use it.
The syntax for using lame.exe is
lame [options] inputfile [outputfile]
So say for example you want to convert the exampleinput.wav to exampleoutput.mp3.
What you have to do is this.
add the line
system( "lame.exe exampleinput.wav exampleoutput.mp3" );
into your program and compile.
put lame.exe and exampleinput.wav to the folder where you have put your program, and run your program. You should find the exampleoutput.mp3 file created inside that folder.
here is a minimal example.
int main()
{
system( "lame.exe exampleinput.wav exampleoutput.mp3" );
return 0;
}
Compile the above program and put the lame.exe and exampleinput.wav file to the same folder where your program is. Then run it. You should see the results.
For more information refer the
usage.txt file that came with the dll file. I have attached it in this post too.