How to create a CString from an array of chars?

Joined
Jan 12, 2010
Messages
1
Reaction score
0
Hello!

I have this:

char buf[1024];
strcpy(buf, cErrorMsg);
....
log.LogMethod(const CString &); // need to pass to LogMethod "buf" how do i do that?

Thans
Rev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top