by foo » Sun Mar 15, 2015 11:26 pm
			
			
			On win 7 64 bit. MMW v 4.1.6.1736 portable.
I set Tools > Options > Player > choose player to be "winamp 2 or 5".
It correctly finds the location of my winamp installation of v2.91.
However, attempting to play an mp3 results in an error dialog that says: "Invalid file name - %s." This says to me either that your output routine for this message is not using "%s" correctly (i.e., not being edited into, but just used as a literal), OR, the routine that creates the filename to send to the external player is not editing into the %s item, and just using it as a literal. In either case, it probably means quotes around %s in your code somewhere that they shouldn't be, or left out the argument altogether.
For me, this is a deal killer, since I don't want to use your internal player in certain situations.
Note that all filenames are US ASCII in a local folder, so UNC is not being used.
The error message with "%s" indicates that this must be a trivial coding error.  Probably someone put quotes around a %s editing string where they don't belong.  Also, sending a file to winamp just requires editing the filename and app location into a string, and sending that to the OS to launch it.  Direct communication with winamp is not required, and this particular task is trivial to implement.
http://stackoverflow.com/questions/9980 ... asic-level 
			
			
							On win 7 64 bit. MMW v 4.1.6.1736 portable.
I set Tools > Options > Player > choose player to be "winamp 2 or 5".
It correctly finds the location of my winamp installation of v2.91.
However, attempting to play an mp3 results in an error dialog that says: "Invalid file name - %s." This says to me either that your output routine for this message is not using "%s" correctly (i.e., not being edited into, but just used as a literal), OR, the routine that creates the filename to send to the external player is not editing into the %s item, and just using it as a literal. In either case, it probably means quotes around %s in your code somewhere that they shouldn't be, or left out the argument altogether.
For me, this is a deal killer, since I don't want to use your internal player in certain situations.
Note that all filenames are US ASCII in a local folder, so UNC is not being used.
The error message with "%s" indicates that this must be a trivial coding error.  Probably someone put quotes around a %s editing string where they don't belong.  Also, sending a file to winamp just requires editing the filename and app location into a string, and sending that to the OS to launch it.  Direct communication with winamp is not required, and this particular task is trivial to implement.
http://stackoverflow.com/questions/9980878/using-s-in-c-correctly-very-basic-level