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*??
IIR right, chars can be either bytes or fixed length strings. I think the * means that it's a pointer?
When dimming CString do it in the format
dim Cstring as string * 8
Making it an 8 character fixed length as an example. I can't say exactly how long that string should be though.
Thanks for your quick replies but I'm new to programming so unfortunately I don't know what either 'dimming' or 'passing by reference' is! Is there not just a line of code that can assign a CString object to whatever the pointer is pointing at?
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.