|
-
November 22nd, 2003, 04:11 PM
#1
CString to string problem
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|