   how convert char[] to LPWSTR for create file !?
  hii use function waveOpen that create one wave file. this function get name of file in LPWSTR type. i generate name of file with below code:LPWSTR fileNameLPW;char fileNameStr[20];int indexOfFile;sprintf(fileNameStr,"NEWFILE%d.WAVE",indexOfFile);CreateWave(fileNameLPW);now how can i copy fileNameStr to fileNameLPW !?   
  In this case you don't need to convert, just use swprintf() with a wide character buffer in the first place.   ;  Which looks like:wchar_t fileNameWStr[20];int indexOfFile;swprintf(fileNameWStr, L"NEWFILE%d.WAVE", indexOfFile);CreateWave(fileNameWStr); // the array decays to a pointer