Re: ERROR - from 'std::string' to 'System::Runtime::Serialization::SerializationInfo
The error message you get is misleading to some extent, but the bottom line seems to be that there is no ListViewItem constructor that takes an std::string as the first parameter.
One possible solution might be to construct a temporary System::String object from the std::string. As there is a System::String constructor that takes a char *, something like this might work:
Code:
ListViewItem item1 = gcnew ListViewItem(gcnew String(ja.c_str()),0 );
But why are you involving an std::string at all? Is this a native/managed interop scenario?
HTH
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.