Re: String conversion by Cowboy
Cowboy
Wed Nov 05 09:04:37 CST 2003
Not familiar with C++ syntax, I am assuming char* is a character array. If
so, you can do one of the following:
characterArray = someString.ToCharArray()
or
Convert.ToBase64CharArray(someString)
Apologies for being dense on C++, but this should at least give a pointer.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
**********************************************************************
Think Outside the Box!
**********************************************************************
"Gideon" <gideon@dwl.co.uk.invalid> wrote in message
news:OYOily4oDHA.2272@tk2msftngp13.phx.gbl...
> is there a simpler way then this ->
>
static_cast<char*>(System::Runtime::InteropServices::Marshal::StringToHGloba
> lAnsi(str).ToPointer());
>
>
>
> to convert a System::String to a char*.
>
> also , any simple way to convert System::String to Std::String?
>
>
>
> thanks.
>
>