in reply to Re: Thinkin' Perl in C++
in thread Thinkin' Perl in C++

I guess that when the OP talks about CString he is actually referring to the Windows C++ class CString, not to the C language strings (aka char *)

Replies are listed 'Best First'.
Re^3: Thinkin' Perl in C++
by mr.nick (Chaplain) on Mar 01, 2012 at 20:07 UTC
    If it's truly CString, then:
    CString sTest("This-has-dashes"); sTest.Replace('-','_');

    mr.nick ...

Re^3: Thinkin' Perl in C++
by davido (Cardinal) on Mar 01, 2012 at 16:59 UTC

    Well, then he's on his own. ;) I don't know anything about the Windows CString class. :)


    Dave