How to append a CString to a const char*?
CString custompath = "c:\folder\";
const char *one = "IECapt.exe --url=";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try reading this.
There, you can find some suggestions on how to obtain what you want. E.g. you can use this snippet:
Then you can delete lpsz, if you don’t need it anymore. Or, rather, you could do something like the following, from the idea (just the idea) in the section Modifying CString Contents Directly: