I use Qt Creator and this code :
CreateProcess(NULL,string("curl -F \"api_key=XXX\" -F \"filetype=mp3\" -F \"track=@"+execpath+"\\sound.mp3\" \"http://developer.echonest.com/api/v4/track/upload\"").c_str(), NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, &startupinfo, &procinfo); // Send sound.mp3 to be analyzed by Echonest
generate this issue:
invalid conversion from 'const char*' to 'LPSTR {aka char*}
How to solve it?
Note that I have defined :
DEFINES -= UNICODE
in my .pro file