Hi,
I have read lots of posts on this but still can't come up with any answers. I have a CString named 'm_sResults1' that needs to be passed to a function named 'openWavFile()' that expects a char*. How do I convert a CString to a char*??
Use GetBuffer() and then call ReleaseBuffer after openWavFile(). If that function takes a const char* (which it probably should if it simply opens a file) then you can pass the CString directly because it will be automatically converted.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.