Re: C++ / JNI memory leakage, help needed
function c_str() returns const <CHAR_TYPE> *
"John Harrison" <john_andronicu s@hotmail.com> wrote in message
news:c4mbgi$2j5 in4$1@ID-196037.news.uni-berlin.de...[color=blue][color=green]
> >
> > What John said, but consider using a std::basic_stri ng<TCHAR> instead of
> > std::vector<TCH AR>. The basic string in C++ has more Java-like syntax,
> > e.g. the operator [ ] is range-checked, and concatenation can be done
> > with operator +.[/color]
>
> But the problem with std::basic_stri ng is that you cannot get a writable
> pointer from it. Therefore it's not suitable for passing to[/color]
SendMessage(win ,[color=blue]
> WM_GETTEXT ...).
>
> john
>
>[/color]
function c_str() returns const <CHAR_TYPE> *
"John Harrison" <john_andronicu s@hotmail.com> wrote in message
news:c4mbgi$2j5 in4$1@ID-196037.news.uni-berlin.de...[color=blue][color=green]
> >
> > What John said, but consider using a std::basic_stri ng<TCHAR> instead of
> > std::vector<TCH AR>. The basic string in C++ has more Java-like syntax,
> > e.g. the operator [ ] is range-checked, and concatenation can be done
> > with operator +.[/color]
>
> But the problem with std::basic_stri ng is that you cannot get a writable
> pointer from it. Therefore it's not suitable for passing to[/color]
SendMessage(win ,[color=blue]
> WM_GETTEXT ...).
>
> john
>
>[/color]
Comment