I tried to compile this code in VC 2005 and it requests typed LPCWSTR variables for strcpy_s function. But if i don't convert thoes strings into char* pointers, again the compiler gives wrong argument type errors. So i've casted variable cmd into char*, but now the program gives an exception. How to fix the code?
And why can't i just pass c-style char arrays into strcpy() in VC2005, like i've used to do in older VC versions?
strcpy_s((char*)cmd, strlen((char*)cmd), "play %");
wsprintf(mediacmd,cmd, "D:\\MUSIC COPY\\JOSHUA_TREE+\\Lord of the Rigns soundtrack(partial)\\1.10 Fangorn.mp3");
Thanx for any help
strcpy_s(cmd, strlen(cmd), "play %");