Hi,

I m using a dll call to play a wav file .
It is like this Playfile("c:\temp\chimes.wav",2);

now i have used GetPathName property to get the path name of the selected file into the CString m_iResults.

Now if i use the syntax as Playfile(m_iResults,2); it gives me error saying - cannot convert parameter 1 from 'class CString' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called


please provide me the solution or a way to solve this problem.

rutu.